diff components/fifeagent.py @ 46:bf506f739322

Removed layer as attribute of BaseBehaviour and added it as a parameter to the attachToLayer method.
author KarstenBock@gmx.net
date Wed, 07 Sep 2011 13:54:02 +0200
parents ff3e395abf91
children ba85e5aff370
line wrap: on
line diff
--- a/components/fifeagent.py	Wed Sep 07 13:24:02 2011 +0200
+++ b/components/fifeagent.py	Wed Sep 07 13:54:02 2011 +0200
@@ -24,5 +24,5 @@
         
 def setup_behaviour(agent):
     """Attach the behaviour to the layer"""
-    if agent.behaviour:        
-        agent.behaviour.attachToLayer(agent.identifier)
\ No newline at end of file
+    if agent.behaviour:   
+        agent.behaviour.attachToLayer(agent.identifier, agent.layer)
\ No newline at end of file