comparison 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
comparison
equal deleted inserted replaced
45:b8f421f74280 46:bf506f739322
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