comparison src/parpg/behaviours/base.py @ 69:ad75fa042b99

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents d5491eb9e3e4
children 58661f5b2f6b
comparison
equal deleted inserted replaced
68:d7286cba42df 69:ad75fa042b99
51 def onNewMap(self, layer): 51 def onNewMap(self, layer):
52 """Sets the agent onto the new layer.""" 52 """Sets the agent onto the new layer."""
53 if self.agent is not None: 53 if self.agent is not None:
54 self.agent.removeActionListener(self) 54 self.agent.removeActionListener(self)
55 55
56 self.agent = layer.getInstance(self.parent.ID) 56 self.agent = layer.getInstance(self.parent.fifeagent.identifier)
57 self.agent.addActionListener(self) 57 self.agent.addActionListener(self)
58 self.state = _AGENT_STATE_NONE 58 self.state = _AGENT_STATE_NONE
59 self.idle_counter = 1 59 self.idle_counter = 1
60 60
61 def idle(self): 61 def idle(self):