From 478ffec82dae4f55c38ccd424079166ec8c38905 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 00:27:14 +0300 Subject: Convert TargetCursorSize enum into strong typed enum. --- src/resources/beinginfo.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/resources/beinginfo.h') 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; -- cgit v1.2.3-60-g2f50