diff components/fifeagent.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 e856b604b650
children 939984cff702
line wrap: on
line diff
--- a/components/fifeagent.py	Fri Sep 23 15:09:02 2011 +0200
+++ b/components/fifeagent.py	Sat Sep 24 15:48:24 2011 +0200
@@ -18,10 +18,10 @@
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(self, identifier=str, layer=object, behaviour=object, gfx=str)
+        Component.__init__(self, layer=object, behaviour=object, gfx=str)
 
         
 def setup_behaviour(agent):
     """Attach the behaviour to the layer"""
     if agent.behaviour:   
-        agent.behaviour.attachToLayer(agent.identifier, agent.layer)
\ No newline at end of file
+        agent.behaviour.attachToLayer(agent.entity.getID(), agent.layer)
\ No newline at end of file