comparison src/parpg/behaviours/base.py @ 116:9b5498e3bda0

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 d89e88a90c9e
children ecac92680bef
comparison
equal deleted inserted replaced
115:a85d58fcd253 116:9b5498e3bda0
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"""