Mercurial > parpg-core
comparison src/parpg/behaviours/base.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 | 4311a0a5378c |
children | ad75fa042b99 |
comparison
equal
deleted
inserted
replaced
57:097cceb06b92 | 58:d5491eb9e3e4 |
---|---|
17 | 17 |
18 _AGENT_STATE_NONE, _AGENT_STATE_IDLE, _AGENT_STATE_APPROACH, _AGENT_STATE_RUN, _AGENT_STATE_WANDER, _AGENT_STATE_TALK = xrange(6) | 18 _AGENT_STATE_NONE, _AGENT_STATE_IDLE, _AGENT_STATE_APPROACH, _AGENT_STATE_RUN, _AGENT_STATE_WANDER, _AGENT_STATE_TALK = xrange(6) |
19 | 19 |
20 class BaseBehaviour (fife.InstanceActionListener): | 20 class BaseBehaviour (fife.InstanceActionListener): |
21 """Fife agent listener""" | 21 """Fife agent listener""" |
22 def __init__(self, layer): | 22 def __init__(self, layer=None): |
23 fife.InstanceActionListener.__init__(self) | 23 fife.InstanceActionListener.__init__(self) |
24 self.layer = layer | 24 self.layer = layer |
25 self.agent = None | 25 self.agent = None |
26 self.state = None | 26 self.state = None |
27 self.speed = 0 | 27 self.speed = 0 |