comparison src/parpg/behaviours/npc.py @ 58:d5491eb9e3e4

Set default value of layer parameter of BaseBehaviour to None
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:09:04 +0200
parents 097cceb06b92
children 2915dbb60940
comparison
equal deleted inserted replaced
57:097cceb06b92 58:d5491eb9e3e4
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