Mercurial > pyntnclick
diff gamelib/state.py @ 515:fda2b3a2f2e9
Remove drawing logic from State.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 07 Sep 2010 13:35:30 +0200 |
parents | b10dae40dc32 |
children | ac2b19f05253 |
line wrap: on
line diff
--- a/gamelib/state.py Tue Sep 07 10:12:55 2010 +0200 +++ b/gamelib/state.py Tue Sep 07 13:35:30 2010 +0200 @@ -168,16 +168,6 @@ def set_tool(self, item): self.tool = item - def draw(self, surface, screen): - if self.do_check and self.previous_scene and self.do_check == constants.LEAVE: - # We still need to handle leave events, so still display the scene - self.previous_scene.draw(surface, screen) - else: - self.current_scene.draw(surface, screen) - - def draw_detail(self, surface, screen): - self.current_detail.draw(surface, screen) - def interact(self, pos): return self.current_scene.interact(self.tool, pos)