Mercurial > parpg-core
changeset 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 |
files | src/parpg/behaviours/base.py src/parpg/behaviours/npc.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parpg/behaviours/base.py Mon Sep 05 13:56:27 2011 +0200 +++ b/src/parpg/behaviours/base.py Mon Sep 05 14:09:04 2011 +0200 @@ -19,7 +19,7 @@ class BaseBehaviour (fife.InstanceActionListener): """Fife agent listener""" - def __init__(self, layer): + def __init__(self, layer=None): fife.InstanceActionListener.__init__(self) self.layer = layer self.agent = None
--- a/src/parpg/behaviours/npc.py Mon Sep 05 13:56:27 2011 +0200 +++ b/src/parpg/behaviours/npc.py Mon Sep 05 14:09:04 2011 +0200 @@ -22,7 +22,7 @@ def __init__(self, parent=None, layer=None): super(NPCBehaviour, self).__init__(layer) - self.parent = Parent + self.parent = parent self.state = _AGENT_STATE_NONE self.pc = None self.target_loc = None