diff gamelib/gamescreen.py @ 71:99c5506de7ea

Start of interact handling.
author Simon Cross <hodgestar+bzr@gmail.com>
date Mon, 23 Aug 2010 21:04:43 +0200
parents 213e47dea4d0
children 932b0956e77a
line wrap: on
line diff
--- a/gamelib/gamescreen.py	Mon Aug 23 20:54:04 2010 +0200
+++ b/gamelib/gamescreen.py	Mon Aug 23 21:04:43 2010 +0200
@@ -65,7 +65,13 @@
         if desc:
             print desc
 
+    def mouse_down(self, event):
+        # TODO: replace None with the correct item
+        self.state.interact(None, event.pos)
+
     def mouse_move(self, event):
+        # TODO: replace None with the correct item
+        self.state.mouse_move(None, event.pos)
         if self.state.check_for_new_description(event.pos):
             # queue a redraw
             self.invalidate()