Mercurial > parpg-source
comparison gamemodel.py @ 52:3dfd26b1c7ef
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 | bf506f739322 |
children | ba85e5aff370 |
comparison
equal
deleted
inserted
replaced
51:d3a9caba067b | 52:3dfd26b1c7ef |
---|---|
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 |