Mercurial > parpg-source
comparison components/fifeagent.py @ 89:939984cff702
Added Base component, which has a saveable_fields property. It is supposed to be derived from, thus it is not in the components list.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 27 Sep 2011 14:58:03 +0200 |
parents | a9cc5559ec2a |
children | d2451ecb1433 |
comparison
equal
deleted
inserted
replaced
88:0411a4bcceee | 89:939984cff702 |
---|---|
9 # GNU General Public License for more details. | 9 # GNU General Public License for more details. |
10 # | 10 # |
11 # You should have received a copy of the GNU General Public License | 11 # You should have received a copy of the GNU General Public License |
12 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 12 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
13 | 13 |
14 from parpg.bGrease.component import Component | 14 from base import Base |
15 | 15 |
16 class FifeAgent(Component): | 16 class FifeAgent(Base): |
17 """Component that stores the values for a fife agent""" | 17 """Component that stores the values for a fife agent""" |
18 | 18 |
19 def __init__(self): | 19 def __init__(self): |
20 """Constructor""" | 20 """Constructor""" |
21 Component.__init__(self, layer=object, behaviour=object, gfx=str) | 21 Base.__init__(self, layer=object, behaviour=object, gfx=str) |
22 | 22 |
23 | 23 |
24 def setup_behaviour(agent): | 24 def setup_behaviour(agent): |
25 """Attach the behaviour to the layer""" | 25 """Attach the behaviour to the layer""" |
26 if agent.behaviour: | 26 if agent.behaviour: |