diff entities/action.py @ 157:79d6b17b80a3

Implemented simple script system.
author KarstenBock@gmx.net
date Sat, 12 Nov 2011 16:27:39 +0100
parents 2241722311bf
children 04854cf6e1ac
line wrap: on
line diff
--- a/entities/action.py	Sat Nov 05 16:08:16 2011 +0100
+++ b/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"""