diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 21:16:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 21:16:07 +0300 |
commit | 0c063cf5b45a843485fe3343e5fb79a40141f88c (patch) | |
tree | e2419701a312e0ba97404049cd5b82b7420c3fce /src/dragdrop.h | |
parent | db82bf99bbd6d246f3e8da19fe88705f7015f144 (diff) | |
download | ManaVerse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.gz ManaVerse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.bz2 ManaVerse-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.xz ManaVerse-0c063cf5b45a843485fe3343e5fb79a40141f88c.zip |
Convert DragDropSource enum into strong typed enum.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r-- | src/dragdrop.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h index 278fc7639..387d3b4a9 100644 --- a/src/dragdrop.h +++ b/src/dragdrop.h @@ -97,7 +97,7 @@ class DragDrop final mItem = 0; mItemColor = ItemColor_one; mItemImage = nullptr; - mSource = DRAGDROP_SOURCE_EMPTY; + mSource = DragDropSource::Empty; mTag = -1; } } @@ -146,7 +146,7 @@ class DragDrop final mItemColor = ItemColor_one; mText.clear(); mItemImage = nullptr; - mSource = DRAGDROP_SOURCE_EMPTY; + mSource = DragDropSource::Empty; mTag = -1; if (info) { @@ -173,13 +173,13 @@ class DragDrop final mItem = 0; mItemColor = ItemColor_one; mItemImage = nullptr; - mSource = DRAGDROP_SOURCE_EMPTY; + mSource = DragDropSource::Empty; mText.clear(); mTag = -1; } bool isEmpty() const - { return mSource == DRAGDROP_SOURCE_EMPTY; } + { return mSource == DragDropSource::Empty; } void select(const Item *const item) { @@ -225,16 +225,16 @@ class DragDrop final bool isSourceItemContainer() const { - return mSource == DRAGDROP_SOURCE_INVENTORY - || mSource == DRAGDROP_SOURCE_STORAGE + return mSource == DragDropSource::Inventory + || mSource == DragDropSource::Storage #ifdef EATHENA_SUPPORT - || mSource == DRAGDROP_SOURCE_CART + || mSource == DragDropSource::Cart #endif - || mSource == DRAGDROP_SOURCE_TRADE - || mSource == DRAGDROP_SOURCE_OUTFIT - || mSource == DRAGDROP_SOURCE_GROUND - || mSource == DRAGDROP_SOURCE_DROP - || mSource == DRAGDROP_SOURCE_CRAFT; + || mSource == DragDropSource::Trade + || mSource == DragDropSource::Outfit + || mSource == DragDropSource::Ground + || mSource == DragDropSource::Drop + || mSource == DragDropSource::Craft; } private: |