summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-29 01:50:58 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-29 01:50:58 +0200
commitf90aa61947641f3db809e047f80fc7b8c865cb94 (patch)
tree0651f81765437772d0f20ee44acb75b76bd64c15 /src/actorspritemanager.h
parent15c69030f987bd7d67fdbaf2158b2c3ae430143f (diff)
downloadmana-client-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.gz
mana-client-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.bz2
mana-client-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.xz
mana-client-f90aa61947641f3db809e047f80fc7b8c865cb94.zip
Made the flooritems position set back in pixels.
The position is centered to the nearest tile center in tA.
Diffstat (limited to 'src/actorspritemanager.h')
-rw-r--r--src/actorspritemanager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actorspritemanager.h b/src/actorspritemanager.h
index d6aa609b..64703396 100644
--- a/src/actorspritemanager.h
+++ b/src/actorspritemanager.h
@@ -59,8 +59,12 @@ class ActorSpriteManager
/**
* Create a FloorItem and add it to the list of ActorSprites.
+ *
+ * @param id the unique ID of this item instance
+ * @param itemId the item ID
+ * @param position the position in pixels
*/
- FloorItem *createItem(int id, int itemId, int x, int y);
+ FloorItem *createItem(int id, int itemId, const Vector &position);
/**
* Destroys the given ActorSprite at the end of