Mercurial > pyntnclick
comparison gamelib/scenes/map.py @ 413:4ce318029cd1
Map: Inaccessible areas
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 28 Aug 2010 22:33:14 +0200 |
parents | 308a433c4713 |
children | aba8e7895324 |
comparison
equal
deleted
inserted
replaced
412:14761edcccad | 413:4ce318029cd1 |
---|---|
31 self.add_thing(ToBridge()) | 31 self.add_thing(ToBridge()) |
32 self.add_thing(ToMess()) | 32 self.add_thing(ToMess()) |
33 self.add_thing(ToEngine()) | 33 self.add_thing(ToEngine()) |
34 self.add_thing(ToMachine()) | 34 self.add_thing(ToMachine()) |
35 self.add_thing(ToCrew()) | 35 self.add_thing(ToCrew()) |
36 self.add_thing(InaccessibleArea()) | |
37 self.add_thing(HydroponicsArea()) | |
36 | 38 |
37 def enter(self): | 39 def enter(self): |
38 if self.get_data('implant'): | 40 if self.get_data('implant'): |
39 self.set_data('implant', False) | 41 self.set_data('implant', False) |
40 ai1 = make_jim_dialog( | 42 ai1 = make_jim_dialog( |
168 } | 170 } |
169 | 171 |
170 INITIAL = 'door' | 172 INITIAL = 'door' |
171 | 173 |
172 | 174 |
175 class InaccessibleArea(Thing): | |
176 NAME = 'map.inaccessible' | |
177 | |
178 INTERACTS = { | |
179 'areas': InteractRectUnion(( | |
180 (207, 227, 39, 63), | |
181 (256, 225, 35, 64), | |
182 (259, 322, 34, 64), | |
183 (514, 380, 58, 66), | |
184 (607, 377, 60, 70), | |
185 )) | |
186 } | |
187 | |
188 INITIAL = 'areas' | |
189 | |
190 def interact_without(self): | |
191 return Result("You look in the door, but just see empty space, " | |
192 "that room appears to be missing.") | |
193 | |
194 | |
195 class HydroponicsArea(Thing): | |
196 NAME = 'map.hydroponics' | |
197 | |
198 INTERACTS = { | |
199 'areas': InteractRectUnion(( | |
200 (314, 263, 73, 81), | |
201 (313, 138, 125, 22), | |
202 )) | |
203 } | |
204 | |
205 INITIAL = 'areas' | |
206 | |
207 def interact_without(self): | |
208 return Result("The find the door, but it's lying on the floor in the passage. " | |
209 "It's been pushed out by a massive wild broccoli. " | |
210 "You won't be going in there, this centuary.") | |
211 | |
212 | |
173 SCENES = [Map] | 213 SCENES = [Map] |