Mercurial > boomslang
diff gamelib/scenes/scene_widgets.py @ 519:8f3c82c685a4
Fix is_interactive() by adding tool param.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 07 Sep 2010 18:13:35 +0200 |
parents | e49e4fe76241 |
children |
line wrap: on
line diff
--- a/gamelib/scenes/scene_widgets.py Tue Sep 07 17:05:51 2010 +0200 +++ b/gamelib/scenes/scene_widgets.py Tue Sep 07 18:13:35 2010 +0200 @@ -146,7 +146,7 @@ def get_description(self): return self.description - def is_interactive(self): + def is_interactive(self, tool=None): return False @@ -160,7 +160,7 @@ self.NAME = self.SCENE + '.door' Thing.__init__(self) - def is_interactive(self): + def is_interactive(self, tool=None): return True def interact_without(self): @@ -199,7 +199,7 @@ else: return "The security camera is powered down" - def is_interactive(self): + def is_interactive(self, tool=None): return self.state.scenes['bridge'].get_data('ai status') == 'online' def interact_with_escher_poster(self, item):