summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:27:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:27:14 +0300
commit478ffec82dae4f55c38ccd424079166ec8c38905 (patch)
tree96f9c597164c4bed24b5ab2040dcfffd1df624d7 /src/resources
parent67dd1ac770ed04fc7cbbbaa160c00f648d490858 (diff)
downloadmanaverse-478ffec82dae4f55c38ccd424079166ec8c38905.tar.gz
manaverse-478ffec82dae4f55c38ccd424079166ec8c38905.tar.bz2
manaverse-478ffec82dae4f55c38ccd424079166ec8c38905.tar.xz
manaverse-478ffec82dae4f55c38ccd424079166ec8c38905.zip
Convert TargetCursorSize enum into strong typed enum.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beinginfo.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 33d1472c3..1d2a3546c 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -75,8 +75,7 @@ class BeingInfo final
void setTargetCursorSize(const std::string &size);
- void setTargetCursorSize(const TargetCursorSize::Size
- &targetSize)
+ void setTargetCursorSize(const TargetCursorSizeT &targetSize)
{ mTargetCursorSize = targetSize; }
void setHoverCursor(const std::string &name)
@@ -88,7 +87,7 @@ class BeingInfo final
Cursor::Cursor getHoverCursor() const A_WARN_UNUSED
{ return mHoverCursor; }
- TargetCursorSize::Size getTargetCursorSize() const A_WARN_UNUSED
+ TargetCursorSizeT getTargetCursorSize() const A_WARN_UNUSED
{ return mTargetCursorSize; }
void addSound(const ItemSoundEvent::Type event,
@@ -326,7 +325,7 @@ class BeingInfo final
private:
SpriteDisplay mDisplay;
std::string mName;
- TargetCursorSize::Size mTargetCursorSize;
+ TargetCursorSizeT mTargetCursorSize;
Cursor::Cursor mHoverCursor;
ItemSoundEvents mSounds;
Attacks mAttacks;