Mercurial > parpg-core
diff src/parpg/entities/character.py @ 62:565ceb192cb9
Added pos paramenter to the Character entity
author | KarstenBock@gmx.net |
---|---|
date | Mon, 05 Sep 2011 14:45:28 +0200 |
parents | 7c6e2e39b545 |
children | 96af64cf3b81 |
line wrap: on
line diff
--- a/src/parpg/entities/character.py Mon Sep 05 14:44:53 2011 +0200 +++ b/src/parpg/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