Mercurial > parpg-source
diff behaviours/npc.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 | dd9bd93ec81c |
line wrap: on
line diff
--- a/behaviours/npc.py Wed Sep 07 13:24:02 2011 +0200 +++ b/behaviours/npc.py Wed Sep 07 13:54:02 2011 +0200 @@ -20,8 +20,8 @@ class NPCBehaviour(BaseBehaviour): """This is a basic NPC behaviour""" - def __init__(self, parent=None, layer=None): - super(NPCBehaviour, self).__init__(layer) + def __init__(self, parent=None): + super(NPCBehaviour, self).__init__() self.parent = parent self.state = base._AGENT_STATE_NONE