summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-11 14:58:14 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-11 14:58:14 +0300
commitc14086d6a08fb2ea644eec9fafa0374604c98991 (patch)
tree29a00277b215a32e019fd06cab4b9ac709ac775c /src/flooritem.h
parent7e19d626711ecf70035b32ee99098fc7fc3419fe (diff)
downloadplus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.gz
plus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.bz2
plus-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.xz
plus-c14086d6a08fb2ea644eec9fafa0374604c98991.zip
Add relative pixel based position to item drops (floor items).
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 95427c252..1f3126078 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -42,14 +42,12 @@ class FloorItem : public ActorSprite
* @param y the y position in tiles
* @param map the map this item is on
* @param amount the item amount
+ * @param color the item color
+ * @param subX the x pixel relative position
+ * @param subY the y pixel relative position
*/
- FloorItem(int id,
- int itemId,
- int x,
- int y,
- Map *map,
- int amount,
- unsigned char color);
+ FloorItem(int id, int itemId, int x, int y, Map *map, int amount,
+ unsigned char color, int subX, int subY);
Type getType() const
{ return FLOOR_ITEM; }