Mercurial > parpg-source
comparison behaviours/base.py @ 44:98f26f7636d8
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 | 77dfe4a917b5 |
children | bf506f739322 |
comparison
equal
deleted
inserted
replaced
43:8f9e9f47c363 | 44:98f26f7636d8 |
---|---|
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): |