comparison 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
comparison
equal deleted inserted replaced
72:9aebbf4e02f7 73:58661f5b2f6b
15 15
16 import base 16 import base
17 from base import BaseBehaviour 17 from base import BaseBehaviour
18 18
19 class PlayerBehaviour (BaseBehaviour): 19 class PlayerBehaviour (BaseBehaviour):
20 def __init__(self, parent=None, layer=None): 20 def __init__(self, parent=None):
21 super(PlayerBehaviour, self).__init__(layer) 21 super(PlayerBehaviour, self).__init__()
22 self.parent = parent 22 self.parent = parent
23 self.idle_counter = 1 23 self.idle_counter = 1
24 self.speed = 0 24 self.speed = 0
25 self.nextAction = None 25 self.nextAction = None
26 self.agent = None 26 self.agent = None