summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-15 13:58:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-16 01:52:14 +0300
commit41cc92f73e39cec5dfea6b1164176610cccc7df4 (patch)
tree22fd3d388084d2c61fe80f0441c3c30ab8ffd33c /src/flooritem.h
parent7aa637abc8b0bca35aacdb9492e65f557ed32038 (diff)
downloadplus-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.gz
plus-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.bz2
plus-41cc92f73e39cec5dfea6b1164176610cccc7df4.tar.xz
plus-41cc92f73e39cec5dfea6b1164176610cccc7df4.zip
Add strong typed int for item color.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r--src/flooritem.h8
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;
};