Mercurial > parpg-core
comparison src/parpg/behaviours/moving.py @ 88:d89e88a90c9e
Implemented creation of dynamic entities.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 18 Sep 2011 16:26:12 +0200 |
parents | 9f8faf6e974d |
children | ecac92680bef |
comparison
equal
deleted
inserted
replaced
87:b764229a0fad | 88:d89e88a90c9e |
---|---|
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""" |