# HG changeset patch # User Stefano Rivera # Date 1283027594 -7200 # Node ID 4ce318029cd12d96f7f46e5c3edd70228d0fbc86 # Parent 14761edcccad33c0f1bfd9482ed416685fd0991e Map: Inaccessible areas diff -r 14761edcccad -r 4ce318029cd1 gamelib/scenes/map.py --- a/gamelib/scenes/map.py Sat Aug 28 22:24:28 2010 +0200 +++ b/gamelib/scenes/map.py Sat Aug 28 22:33:14 2010 +0200 @@ -33,6 +33,8 @@ self.add_thing(ToEngine()) self.add_thing(ToMachine()) self.add_thing(ToCrew()) + self.add_thing(InaccessibleArea()) + self.add_thing(HydroponicsArea()) def enter(self): if self.get_data('implant'): @@ -170,4 +172,42 @@ INITIAL = 'door' +class InaccessibleArea(Thing): + NAME = 'map.inaccessible' + + INTERACTS = { + 'areas': InteractRectUnion(( + (207, 227, 39, 63), + (256, 225, 35, 64), + (259, 322, 34, 64), + (514, 380, 58, 66), + (607, 377, 60, 70), + )) + } + + INITIAL = 'areas' + + def interact_without(self): + return Result("You look in the door, but just see empty space, " + "that room appears to be missing.") + + +class HydroponicsArea(Thing): + NAME = 'map.hydroponics' + + INTERACTS = { + 'areas': InteractRectUnion(( + (314, 263, 73, 81), + (313, 138, 125, 22), + )) + } + + INITIAL = 'areas' + + def interact_without(self): + return Result("The find the door, but it's lying on the floor in the passage. " + "It's been pushed out by a massive wild broccoli. " + "You won't be going in there, this centuary.") + + SCENES = [Map]