comparison components/fifeagent.py @ 57:ba85e5aff370

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 bf506f739322
children e856b604b650
comparison
equal deleted inserted replaced
56:3f6299f975fe 57:ba85e5aff370
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: