comparison gamelib/scenes/bridge.py @ 578:356795038b87 pyntnclick

Remove a couple of uses os DEBUG.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 11 Feb 2012 16:17:52 +0200
parents 1b1ab71535bd
children 4e9178215e75
comparison
equal deleted inserted replaced
577:ccc26c23d2c1 578:356795038b87
10 from pyntnclick.cursor import CursorSprite 10 from pyntnclick.cursor import CursorSprite
11 from pyntnclick.state import Scene, Item, Thing, Result 11 from pyntnclick.state import Scene, Item, Thing, Result
12 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion, 12 from pyntnclick.scenewidgets import (InteractNoImage, InteractRectUnion,
13 InteractImage, InteractAnimated, 13 InteractImage, InteractAnimated,
14 GenericDescThing) 14 GenericDescThing)
15
16 # XXX: Need a way to get at the constants.
17 from pyntnclick.constants import GameConstants
18 DEBUG = GameConstants().debug
19 15
20 from gamelib.scenes.game_constants import PLAYER_ID 16 from gamelib.scenes.game_constants import PLAYER_ID
21 from gamelib.scenes.game_widgets import Door, BaseCamera, make_jim_dialog 17 from gamelib.scenes.game_widgets import Door, BaseCamera, make_jim_dialog
22 18
23 19
452 COMPUTER = 'bridge_comp_detail' 448 COMPUTER = 'bridge_comp_detail'
453 449
454 def __init__(self, number, rect, ai_blocked): 450 def __init__(self, number, rect, ai_blocked):
455 super(DestNavPageLine, self).__init__() 451 super(DestNavPageLine, self).__init__()
456 self.name = 'bridge_comp.nav_line%s' % number 452 self.name = 'bridge_comp.nav_line%s' % number
457 if DEBUG: 453 # set debugging higlight color for when DEBUG is on.
458 self._interact_hilight_color = Color(THECOLORS.keys()[number]) 454 self._interact_hilight_color = Color(THECOLORS.keys()[number])
459 r = Rect(rect) 455 r = Rect(rect)
460 self.interacts = {} 456 self.interacts = {}
461 self.interacts['line'] = InteractNoImage(r.x, r.y, r.w, r.h) 457 self.interacts['line'] = InteractNoImage(r.x, r.y, r.w, r.h)
462 # Whether JIM blocks this 458 # Whether JIM blocks this
463 self.ai_blocked = ai_blocked 459 self.ai_blocked = ai_blocked