summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
commitab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch)
treeac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/flooritem.h
parent399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff)
downloadManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz
ManaVerse-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip
Add const to some classes.
Diffstat (limited to 'src/flooritem.h')
-rw-r--r--src/flooritem.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/flooritem.h b/src/flooritem.h
index 1d1947379..42a543aea 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -46,8 +46,9 @@ class FloorItem : public ActorSprite
* @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, int subX, int subY);
+ 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);
Type getType() const
{ return FLOOR_ITEM; }
@@ -86,7 +87,7 @@ class FloorItem : public ActorSprite
bool getShowMsg() const
{ return mShowMsg; }
- void setShowMsg(bool n)
+ void setShowMsg(const bool n)
{ mShowMsg = n; }
void disableHightlight()