Mercurial > boomslang
diff pyntnclick/cursor.py @ 603:3ce19d33b51f pyntnclick
Rename state to game to not cause confusion with the other state
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 11 Feb 2012 20:09:47 +0200 |
parents | 1b1ab71535bd |
children | 2748d3afcae5 |
line wrap: on
line diff
--- a/pyntnclick/cursor.py Sat Feb 11 20:05:22 2012 +0200 +++ b/pyntnclick/cursor.py Sat Feb 11 20:09:47 2012 +0200 @@ -81,7 +81,7 @@ self.draw_cursor(self.get_root().surface) def draw_cursor(self, surface): - self.set_cursor(self.screen.state.tool) + self.set_cursor(self.screen.game.tool) self.cursor.set_highlight(self.cursor_highlight()) if self.cursor is not None: self._cursor_group.update() @@ -110,9 +110,9 @@ def cursor_highlight(self): if not Rect((0, 0), SCENE_SIZE).collidepoint(pygame.mouse.get_pos()): return False - if self.screen.state.highlight_override: + if self.screen.game.highlight_override: return True - current_thing = self.screen.state.current_thing + current_thing = self.screen.game.current_thing if current_thing: return current_thing.is_interactive() return False