comparison entities/action.py @ 164:ed24962cdf5e

Small fixes.
author KarstenBock@gmx.net
date Sat, 19 Nov 2011 19:28:38 +0100
parents 9c82ed72dc9d
children 95461b06bac1
comparison
equal deleted inserted replaced
163:9c82ed72dc9d 164:ed24962cdf5e
448 @param script: The name of the script to run. 448 @param script: The name of the script to run.
449 @type script: string 449 @type script: string
450 @param commands: Special commands that are executed 450 @param commands: Special commands that are executed
451 @type commands: Dictionary 451 @type commands: Dictionary
452 """ 452 """
453 self.commands = commands or () 453 Action.__init__(self, controller, commands)
454 self.controller = controller
455 self.model = controller.model
456 self.script = script 454 self.script = script
457 self.executed = False
458 455
459 def execute(self): 456 def execute(self):
460 self.controller.systems.scripting.runScript(self.script) 457 self.controller.systems.scripting.runScript(self.script)
461 Action.execute(self) 458 Action.execute(self)
462 459