diff src/parpg/behaviours/player.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 c3350fc9cd45
line wrap: on
line diff
--- a/src/parpg/behaviours/player.py	Wed Sep 07 13:24:02 2011 +0200
+++ b/src/parpg/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