comparison behaviours/npc.py @ 33:77dfe4a917b5

Set default value of layer parameter of BaseBehaviour to None
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:09:04 +0200
parents 050dc40f9a76
children 12071706020f
comparison
equal deleted inserted replaced
32:050dc40f9a76 33:77dfe4a917b5
20 class NPCBehaviour(BaseBehaviour): 20 class NPCBehaviour(BaseBehaviour):
21 """This is a basic NPC behaviour""" 21 """This is a basic NPC behaviour"""
22 def __init__(self, parent=None, layer=None): 22 def __init__(self, parent=None, layer=None):
23 super(NPCBehaviour, self).__init__(layer) 23 super(NPCBehaviour, self).__init__(layer)
24 24
25 self.parent = Parent 25 self.parent = parent
26 self.state = _AGENT_STATE_NONE 26 self.state = _AGENT_STATE_NONE
27 self.pc = None 27 self.pc = None
28 self.target_loc = None 28 self.target_loc = None
29 self.nextAction = None 29 self.nextAction = None
30 30