diff src/parpg/entities/action.py @ 189:61d158ce6bc3

Implemented simple script system.
author KarstenBock@gmx.net
date Sat, 12 Nov 2011 16:27:39 +0100
parents 487fba82abff
children a22e92090018
line wrap: on
line diff
--- a/src/parpg/entities/action.py	Sat Nov 05 16:08:16 2011 +0100
+++ b/src/parpg/entities/action.py	Sat Nov 12 16:27:39 2011 +0100
@@ -44,6 +44,7 @@
         self.commands = commands or ()
         self.controller = controller
         self.model = controller.model
+        self.executed = False
     
     def execute(self):
         """To be overwritten"""        
@@ -63,6 +64,7 @@
                 self.controller.resetMouseCursor()
             elif command == "StopDragging":
                 data_drag.dragging = False
+        self.executed = True
                 
 class ChangeMapAction(Action):
     """A change map scheduled"""