diff components/fifeagent.py @ 36:a236fff5feea

Added pos value to the FifeAgent component
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:44:53 +0200
parents bcabbffc88e6
children ff3e395abf91
line wrap: on
line diff
--- a/components/fifeagent.py	Mon Sep 05 14:43:48 2011 +0200
+++ b/components/fifeagent.py	Mon Sep 05 14:44:53 2011 +0200
@@ -12,13 +12,14 @@
 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from parpg.grease.component import Component
+from grease.geometry import Vec2d
 
 class FifeAgent(Component):
     """Component that stores the values for a fife agent"""
     
     def __init__(self):
         """Constructor"""
-        Component.__init__(self, identifier=int, layer=object, behaviour=object, gfx=str)
+        Component.__init__(self, identifier=str, layer=object, behaviour=object, gfx=str, pos=Vec2d)
 
         
 def setup_behaviour(agent):