changeset 37:59ea103917ae

Added pos paramenter to the Character entity
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:45:28 +0200
parents a236fff5feea
children b30a72c41f90
files entities/character.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/entities/character.py	Mon Sep 05 14:44:53 2011 +0200
+++ b/entities/character.py	Mon Sep 05 14:45:28 2011 +0200
@@ -12,10 +12,12 @@
 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from parpg.grease import Entity
+from parpg.grease.geometry import Vec2d
 
 class Character(Entity):
     def __init__(self, world, view_name, real_name, desc, statistics, max_bulk,
-                 identifier, layer=None, behaviour=None, gfx=None, items=None
+                 identifier, layer=None, behaviour=None, gfx=None, 
+                 pos=Vec2d(0.0, 0.0), items=None
                  ):
         self.characterstats.statistics = statistics
         
@@ -30,3 +32,4 @@
         self.fifeagent.layer = layer
         self.fifeagent.behaviour = behaviour
         self.fifeagent.gfx = gfx
+        self.fifeagent.pos = pos