Mercurial > parpg-core
comparison src/parpg/gamemodel.py @ 79:62cff91a19cb
Modifications to make the player agent move around by clicking with the mouse.
author | KarstenBock@gmx.net |
---|---|
date | Thu, 08 Sep 2011 18:23:06 +0200 |
parents | 58661f5b2f6b |
children | 1e7465a785c4 |
comparison
equal
deleted
inserted
replaced
78:c25c734bd2a7 | 79:62cff91a19cb |
---|---|
710 """Code called when the player should move to another location | 710 """Code called when the player should move to another location |
711 @type position: fife.ScreenPoint | 711 @type position: fife.ScreenPoint |
712 @param position: Screen position to move to | 712 @param position: Screen position to move to |
713 @return: None""" | 713 @return: None""" |
714 if(self.pc_run == 1): | 714 if(self.pc_run == 1): |
715 self.game_state.getObjectById("PlayerCharacter").fifeagent.run(position) | 715 self.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.run(position) |
716 else: | 716 else: |
717 self.game_state.getObjectById("PlayerCharacter").fifeagent.walk(position) | 717 self.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.walk(position) |
718 | 718 |
719 def teleportAgent(self, agent, position): | 719 def teleportAgent(self, agent, position): |
720 """Code called when an agent should teleport to another location | 720 """Code called when an agent should teleport to another location |
721 @type position: fife.ScreenPoint | 721 @type position: fife.ScreenPoint |
722 @param position: Screen position to teleport to | 722 @param position: Screen position to teleport to |