diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-29 01:50:58 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-29 01:50:58 +0200 |
commit | f90aa61947641f3db809e047f80fc7b8c865cb94 (patch) | |
tree | 0651f81765437772d0f20ee44acb75b76bd64c15 /src/flooritem.h | |
parent | 15c69030f987bd7d67fdbaf2158b2c3ae430143f (diff) | |
download | mana-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.gz mana-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.bz2 mana-f90aa61947641f3db809e047f80fc7b8c865cb94.tar.xz mana-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.h | 12 |
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; } |