diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-11 14:58:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-11 14:58:14 +0300 |
commit | c14086d6a08fb2ea644eec9fafa0374604c98991 (patch) | |
tree | 29a00277b215a32e019fd06cab4b9ac709ac775c /src/flooritem.h | |
parent | 7e19d626711ecf70035b32ee99098fc7fc3419fe (diff) | |
download | manaverse-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.gz manaverse-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.bz2 manaverse-c14086d6a08fb2ea644eec9fafa0374604c98991.tar.xz manaverse-c14086d6a08fb2ea644eec9fafa0374604c98991.zip |
Add relative pixel based position to item drops (floor items).
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 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; } |