comparison behaviours/moving.py @ 61:2727d6b78978

Implemented creation of dynamic entities.
author KarstenBock@gmx.net
date Sun, 18 Sep 2011 16:26:12 +0200
parents 3f6299f975fe
children 57f1cff9a75d
comparison
equal deleted inserted replaced
60:e2004c9549d7 61:2727d6b78978
55 if(action.getId() != 'stand'): 55 if(action.getId() != 'stand'):
56 self.idle_counter = 1 56 self.idle_counter = 1
57 else: 57 else:
58 self.idle_counter += 1 58 self.idle_counter += 1
59 59
60 def idle(self):
61 """@return: None"""
62 BaseBehaviour.idle(self)
63 self.agent.act('stand', self.agent.getFacingLocation())
64
60 def run(self, location): 65 def run(self, location):
61 """Makes the PC run to a certain location 66 """Makes the PC run to a certain location
62 @type location: fife.ScreenPoint 67 @type location: fife.ScreenPoint
63 @param location: Screen position to run to. 68 @param location: Screen position to run to.
64 @return: None""" 69 @return: None"""