Mercurial > parpg-source
diff 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 |
line wrap: on
line diff
--- a/gamemodel.py Thu Sep 08 15:18:39 2011 +0200 +++ b/gamemodel.py Thu Sep 08 18:23:06 2011 +0200 @@ -712,9 +712,9 @@ @param position: Screen position to move to @return: None""" if(self.pc_run == 1): - self.game_state.getObjectById("PlayerCharacter").fifeagent.run(position) + self.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.run(position) else: - self.game_state.getObjectById("PlayerCharacter").fifeagent.walk(position) + self.game_state.getObjectById("PlayerCharacter").fifeagent.behaviour.walk(position) def teleportAgent(self, agent, position): """Code called when an agent should teleport to another location