summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 14:30:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 14:30:20 +0300
commit0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 (patch)
tree6259593b8436178ad8d981a96a8fd71eab9e04cc /src/gui/popups/popupmenu.h
parent01773c71a4698c6f01fe70d864f922bda65506cb (diff)
downloadmanaverse-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.gz
manaverse-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.bz2
manaverse-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.tar.xz
manaverse-0f9ec2061c4ad6157c3186f1cab9c4d8558980b5.zip
Add strong typed int type BeingId.
Diffstat (limited to 'src/gui/popups/popupmenu.h')
-rw-r--r--src/gui/popups/popupmenu.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index 5d6420662..e1f9b3ba7 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -25,6 +25,8 @@
#include "enums/inventorytype.h"
+#include "enums/simpletypes/beingid.h"
+
#include "gui/widgets/linkhandler.h"
#include "gui/widgets/popup.h"
@@ -140,7 +142,8 @@ class PopupMenu final : public Popup, public LinkHandler
void showWindowsPopup();
- void showNpcDialogPopup(const int npcId, const int x, const int y);
+ void showNpcDialogPopup(const BeingId npcId,
+ const int x, const int y);
void showWindowPopup(Window *const window);
@@ -198,8 +201,8 @@ class PopupMenu final : public Popup, public LinkHandler
BrowserBox *mBrowserBox;
ScrollArea *mScrollArea;
- int mBeingId;
- int mFloorItemId;
+ BeingId mBeingId;
+ BeingId mFloorItemId;
Item *mItem;
int mItemId;
unsigned char mItemColor;