summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 12:59:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commit77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf (patch)
tree16f67d44f5c359e0d8597502d220c4bd3e5625fb /src/flooritem.h
parent5d89861c7e83bb9232e11565159b1917052f1467 (diff)
downloadplus-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.gz
plus-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.bz2
plus-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.tar.xz
plus-77f9d35e736eb7f0f6491b3c6cbe415a8e9ad3cf.zip
move virtual member calls from flooritem constuctor into postInit.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r--src/flooritem.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/flooritem.h b/src/flooritem.h
index 1eecf3aef..612dda22c 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -42,18 +42,16 @@ class FloorItem final : public ActorSprite
* @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 amount the item amount
* @param color the item color
- * @param subX the x pixel relative position
- * @param subY the y pixel relative position
*/
FloorItem(const int id, const int itemId, const int x, const int y,
- Map *const map, const int amount, const unsigned char color,
- int subX, int subY);
+ const int amount, const unsigned char color);
A_DELETE_COPY(FloorItem)
+ void postInit(Map *const map, int subX, int subY);
+
Type getType() const override A_WARN_UNUSED
{ return FLOOR_ITEM; }