comparison gamelib/scenes/bridge.py @ 360:452230d78541

Use make_jim_dialog everywhere
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 16:51:40 +0200
parents 09efb8b7c132
children a95bfba3acd5
comparison
equal deleted inserted replaced
359:6b94f549443b 360:452230d78541
11 11
12 from gamelib.scenes.game_constants import PLAYER_ID 12 from gamelib.scenes.game_constants import PLAYER_ID
13 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage, 13 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage,
14 InteractRectUnion, InteractImage, 14 InteractRectUnion, InteractImage,
15 InteractAnimated, GenericDescThing, 15 InteractAnimated, GenericDescThing,
16 BaseCamera) 16 BaseCamera, make_jim_dialog)
17 17
18 18
19 class Bridge(Scene): 19 class Bridge(Scene):
20 20
21 FOLDER = "bridge" 21 FOLDER = "bridge"
300 return Result("You smash various delicate components with the machete.") 300 return Result("You smash various delicate components with the machete.")
301 301
302 def interact_default(self): 302 def interact_default(self):
303 if self.scene.get_data('ai status') == 'online': 303 if self.scene.get_data('ai status') == 'online':
304 return (Result('You feel a shock from the panel'), 304 return (Result('You feel a shock from the panel'),
305 Result("JIM says: 'Prisoner %s. Please step away from the panel. " 305 make_jim_dialog("Prisoner %s. Please step away from the panel. "
306 "You are not an authorized techinican.'" % PLAYER_ID, style="JIM")) 306 "You are not an authorized techinican." % PLAYER_ID, self.state))
307 307
308 class ChairDetail(Scene): 308 class ChairDetail(Scene):
309 309
310 FOLDER = 'bridge' 310 FOLDER = 'bridge'
311 BACKGROUND = 'chair_detail.png' 311 BACKGROUND = 'chair_detail.png'