summaryrefslogtreecommitdiff
path: root/src/flooritem.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/flooritem.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/flooritem.h')
-rw-r--r--src/flooritem.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/flooritem.h b/src/flooritem.h
index e599c939..0bcc380f 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -35,16 +35,14 @@ class FloorItem : public ActorSprite
/**
* Constructor.
*
- * @param id the unique ID of this item instance
- * @param itemId the item ID
- * @param x the x position in tiles
- * @param y the y position in tiles
- * @param map the map this item is on
+ * @param id the unique ID of this item instance
+ * @param itemId the item ID
+ * @param position the position in pixels
+ * @param map the map this item is on
*/
FloorItem(int id,
int itemId,
- int x,
- int y,
+ const Vector &position,
Map *map);
Type getType() const { return FLOOR_ITEM; }