Mercurial > parpg-core
diff 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 |
line wrap: on
line diff
--- a/src/parpg/gamemodel.py Thu Sep 08 15:18:39 2011 +0200 +++ b/src/parpg/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