diff src/parpg/behaviours/npc.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 2915dbb60940
children 47e1345fbac2
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py	Wed Sep 07 13:24:02 2011 +0200
+++ b/src/parpg/behaviours/npc.py	Wed Sep 07 13:54:02 2011 +0200
@@ -20,8 +20,8 @@
 
 class NPCBehaviour(BaseBehaviour):
     """This is a basic NPC behaviour"""
-    def __init__(self, parent=None, layer=None):
-        super(NPCBehaviour, self).__init__(layer)
+    def __init__(self, parent=None):
+        super(NPCBehaviour, self).__init__()
         
         self.parent = parent
         self.state = base._AGENT_STATE_NONE