comparison src/parpg/components/fifeagent.py @ 84:1e7465a785c4

Removed the pos value from the fifeagent component. getItemActions of Gamescenecontroller gets the position by calling a method of the behaviour.
author KarstenBock@gmx.net
date Fri, 09 Sep 2011 15:30:23 +0200
parents 58661f5b2f6b
children 0f659c7675f6
comparison
equal deleted inserted replaced
83:9f8faf6e974d 84:1e7465a785c4
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 bGrease.component import Component 14 from bGrease.component import Component
15 from bGrease.geometry import Vec2d
16 15
17 class FifeAgent(Component): 16 class FifeAgent(Component):
18 """Component that stores the values for a fife agent""" 17 """Component that stores the values for a fife agent"""
19 18
20 def __init__(self): 19 def __init__(self):
21 """Constructor""" 20 """Constructor"""
22 Component.__init__(self, identifier=str, layer=object, behaviour=object, gfx=str, pos=Vec2d) 21 Component.__init__(self, identifier=str, layer=object, behaviour=object, gfx=str)
23 22
24 23
25 def setup_behaviour(agent): 24 def setup_behaviour(agent):
26 """Attach the behaviour to the layer""" 25 """Attach the behaviour to the layer"""
27 if agent.behaviour: 26 if agent.behaviour: