Mercurial > parpg-core
diff src/parpg/components/fifeagent.py @ 73:58661f5b2f6b
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 | 96af64cf3b81 |
children | 1e7465a785c4 |
line wrap: on
line diff
--- a/src/parpg/components/fifeagent.py Wed Sep 07 13:24:02 2011 +0200 +++ b/src/parpg/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