diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-15 13:58:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-16 01:52:14 +0300 |
commit | 41cc92f73e39cec5dfea6b1164176610cccc7df4 (patch) | |
tree | 22fd3d388084d2c61fe80f0441c3c30ab8ffd33c /src/flooritem.h | |
parent | 7aa637abc8b0bca35aacdb9492e65f557ed32038 (diff) | |
download | manaverse-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.gz manaverse-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.bz2 manaverse-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.xz manaverse-41cc92f73e39cec5dfea6b1164176610cccc7df4.zip |
Add strong typed int for item color.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r-- | src/flooritem.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/flooritem.h b/src/flooritem.h index 33c95c062..fe0bd26ad 100644 --- a/src/flooritem.h +++ b/src/flooritem.h @@ -23,6 +23,8 @@ #ifndef FLOORITEM_H #define FLOORITEM_H +#include "enums/simpletypes/itemcolor.h" + #include "being/actorsprite.h" #include "resources/cursor.h" @@ -49,7 +51,7 @@ class FloorItem final : public ActorSprite const int itemId, const int x, const int y, const int amount, - const unsigned char color); + const ItemColor color); A_DELETE_COPY(FloorItem) @@ -88,7 +90,7 @@ class FloorItem final : public ActorSprite unsigned getPickupCount() const A_WARN_UNUSED { return mPickupCount; } - unsigned char getColor() const A_WARN_UNUSED + ItemColor getColor() const A_WARN_UNUSED { return mColor; } bool getShowMsg() const A_WARN_UNUSED @@ -111,7 +113,7 @@ class FloorItem final : public ActorSprite int mHeightPosDiff; unsigned int mPickupCount; Cursor::Cursor mCursor; - unsigned char mColor; + ItemColor mColor; bool mShowMsg; bool mHighlight; }; |