From 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 14:30:20 +0300 Subject: Add strong typed int type BeingId. --- src/flooritem.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/flooritem.h') 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) -- cgit v1.2.3-60-g2f50