Mercurial > boomslang
diff gamelib/scenes/cryo.py @ 242:12c4f87ea424
Unify doors a bit
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Fri, 27 Aug 2010 11:32:49 +0200 |
parents | ca490aecbe0e |
children | 0bad554d0926 |
line wrap: on
line diff
--- a/gamelib/scenes/cryo.py Fri Aug 27 10:37:47 2010 +0200 +++ b/gamelib/scenes/cryo.py Fri Aug 27 11:32:49 2010 +0200 @@ -10,6 +10,7 @@ InteractImage, InteractNoImage, InteractRectUnion, \ InteractAnimated from gamelib.statehelpers import GenericDescThing +from gamelib.scenes.scene_widgets import Door from gamelib.constants import DEBUG from gamelib.scenes.game_constants import PLAYER_ID @@ -268,7 +269,7 @@ ]), soundfile="clang2.ogg") -class CryoRoomDoor(Thing): +class CryoRoomDoor(Door): "Door to the cryo room." NAME = "cryo.door" @@ -312,9 +313,6 @@ "The door resists. Try something else, perhaps?", ])) - def is_interactive(self): - return True - def half_open_door(self): self.set_data('door', "ajar") self.set_interact("ajar")