comparison src/parpg/entities/action.py @ 197:cf6345ec8988

Small fixes.
author KarstenBock@gmx.net
date Sat, 19 Nov 2011 19:28:38 +0100
parents 7e51bae477f7
children c0915e63a557
comparison
equal deleted inserted replaced
196:7e51bae477f7 197:cf6345ec8988
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