comparison gamelib/scenes/cryo.py @ 125:d3ca34a664fd

Some detail view and data cleanup.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 24 Aug 2010 18:01:42 +0200
parents 48d24a48d0ce
children 9646e7c8bb97
comparison
equal deleted inserted replaced
124:97322b78d1c1 125:d3ca34a664fd
18 'greet' : True 18 'greet' : True
19 } 19 }
20 20
21 def __init__(self, state): 21 def __init__(self, state):
22 super(Cryo, self).__init__(state) 22 super(Cryo, self).__init__(state)
23 self.add_item(Triangle("triangle"))
24 self.add_item(TitaniumLeg("titanium_leg")) 23 self.add_item(TitaniumLeg("titanium_leg"))
25 self.add_thing(CryoUnitAlpha()) 24 self.add_thing(CryoUnitAlpha())
26 self.add_thing(CryoRoomDoor()) 25 self.add_thing(CryoRoomDoor())
27 self.add_thing(CryoComputer()) 26 self.add_thing(CryoComputer())
28 27
33 " the terms of the emergency conscription act to help with" 32 " the terms of the emergency conscription act to help with"
34 " repairs to the ship. Your behaviour during this time will" 33 " repairs to the ship. Your behaviour during this time will"
35 " be added to your record and will be relayed to " 34 " be added to your record and will be relayed to "
36 " prison officials when we reach the destination." 35 " prison officials when we reach the destination."
37 " Please report to the bridge.") 36 " Please report to the bridge.")
38
39 class Triangle(Item):
40 "Test item. Needs to go away at some point."
41
42 INVENTORY_IMAGE = "triangle.png"
43 37
44 38
45 class TitaniumLeg(Item): 39 class TitaniumLeg(Item):
46 "Titanium leg, found on a piratical corpse." 40 "Titanium leg, found on a piratical corpse."
47 41
163 } 157 }
164 158
165 INITIAL = "info" 159 INITIAL = "info"
166 160
167 161
168 class CryoTriangle(Thing): 162 class TitaniumLegThing(Thing):
169 "Triangle in the cryo room." 163 "Triangle in the cryo room."
170 164
171 NAME = "cryo.triangle" 165 NAME = "cryo.titanium_leg"
172 166
173 INTERACTS = { 167 INTERACTS = {
174 "triangular": InteractImage(50, 50, "door_open.png"), 168 "triangular": InteractImage(50, 50, "triangle.png"),
175 } 169 }
176 170
177 INITIAL = "triangular" 171 INITIAL = "triangular"
178 172
179 def interact_without(self): 173 def interact_without(self):
191 185
192 SIZE = (300, 300) 186 SIZE = (300, 300)
193 187
194 def __init__(self, state): 188 def __init__(self, state):
195 super(CryoUnitWithCorpse, self).__init__(state) 189 super(CryoUnitWithCorpse, self).__init__(state)
196 self.add_thing(CryoTriangle()) 190 self.add_thing(TitaniumLegThing())
197
198 191
199 192
200 SCENES = [Cryo] 193 SCENES = [Cryo]
201 DETAIL_VIEWS = [CryoUnitWithCorpse] 194 DETAIL_VIEWS = [CryoUnitWithCorpse]