diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 14:30:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 14:30:20 +0300 |
commit | 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (patch) | |
tree | 6259593b8436178ad8d981a96a8fd71eab9e04cc /src/flooritem.h | |
parent | 01773c71a4698c6f01fe70d864f922bda65506cb (diff) | |
download | plus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.gz plus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.bz2 plus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.xz plus-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.zip |
Add strong typed int type BeingId.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r-- | src/flooritem.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/flooritem.h b/src/flooritem.h index 8d062eafa..dbeffa8dd 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -23,6 +23,8 @@ #ifndef FLOORITEM_H #define FLOORITEM_H +#include "enums/simpletypes/beingid.h" + #include "being/actorsprite.h" #include "resources/cursor.h" @@ -45,8 +47,11 @@ class FloorItem final : public ActorSprite * @param amount the item amount * @param color the item color */ - FloorItem(const int id, const int itemId, const int x, const int y, - const int amount, const unsigned char color); + FloorItem(const BeingId id, + const int itemId, + const int x, const int y, + const int amount, + const unsigned char color); A_DELETE_COPY(FloorItem) |