Mercurial > parpg-core
diff src/parpg/behaviours/player.py @ 75:c3350fc9cd45
Added approach functionality to the BaseBehaviour
author | KarstenBock@gmx.net |
---|---|
date | Thu, 08 Sep 2011 14:20:31 +0200 |
parents | 58661f5b2f6b |
children | 7cb53edfb95f |
line wrap: on
line diff
--- a/src/parpg/behaviours/player.py Wed Sep 07 14:48:08 2011 +0200 +++ b/src/parpg/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