diff behaviours/player.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 12071706020f
children 1bdadb768bcf
line wrap: on
line diff
--- a/behaviours/player.py	Wed Sep 07 13:24:02 2011 +0200
+++ b/behaviours/player.py	Wed Sep 07 13:54:02 2011 +0200
@@ -17,8 +17,8 @@
 from base import BaseBehaviour
 
 class PlayerBehaviour (BaseBehaviour):
-    def __init__(self, parent=None, layer=None):
-        super(PlayerBehaviour, self).__init__(layer)        
+    def __init__(self, parent=None):
+        super(PlayerBehaviour, self).__init__()        
         self.parent = parent
         self.idle_counter = 1
         self.speed = 0