comparison behaviours/base.py @ 86:a9cc5559ec2a

Move the identifier field from the FifeAgent component to the new General component. Added General Entity.
author KarstenBock@gmx.net
date Sat, 24 Sep 2011 15:48:24 +0200
parents 2727d6b78978
children 57f1cff9a75d
comparison
equal deleted inserted replaced
85:04af237dde10 86:a9cc5559ec2a
50 def onNewMap(self, layer): 50 def onNewMap(self, layer):
51 """Sets the agent onto the new layer.""" 51 """Sets the agent onto the new layer."""
52 if self.agent is not None: 52 if self.agent is not None:
53 self.agent.removeActionListener(self) 53 self.agent.removeActionListener(self)
54 54
55 self.agent = layer.getInstance(self.parent.fifeagent.identifier) 55 self.agent = layer.getInstance(self.parent.general.identifier)
56 self.agent.addActionListener(self) 56 self.agent.addActionListener(self)
57 self.state = _AGENT_STATE_NONE 57 self.state = _AGENT_STATE_NONE
58 58
59 def idle(self): 59 def idle(self):
60 """@return: None""" 60 """@return: None"""