diff behaviours/player.py @ 48:1bdadb768bcf

Added approach functionality to the BaseBehaviour
author KarstenBock@gmx.net
date Thu, 08 Sep 2011 14:20:31 +0200
parents bf506f739322
children 8b1ad2d342d8
line wrap: on
line diff
--- a/behaviours/player.py	Wed Sep 07 14:48:08 2011 +0200
+++ b/behaviours/player.py	Thu Sep 08 14:20:31 2011 +0200
@@ -23,23 +23,4 @@
         self.idle_counter = 1
         self.speed = 0
         self.nextAction = None
-        self.agent = None
-        
-    def onInstanceActionFinished(self, instance, action):
-        """@type instance: ???
-           @param instance: ???
-           @type action: ???
-           @param action: ???
-           @return: None"""
-        # First we reset the next behavior 
-        act = self.nextAction
-        self.nextAction = None 
-        self.idle()
-        
-        if act:
-            act.execute()
-            
-        if(action.getId() != 'stand'):
-            self.idle_counter = 1
-        else:
-            self.idle_counter += 1  
\ No newline at end of file
+        self.agent = None
\ No newline at end of file