diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:36:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:36:56 +0300 |
commit | 7969f0590204ac48d74e98c3211bca27693bac44 (patch) | |
tree | 78b2952b547aabe9f018e308dc57834322715707 /src/being/actorsprite.h | |
parent | 478ffec82dae4f55c38ccd424079166ec8c38905 (diff) | |
download | plus-7969f0590204ac48d74e98c3211bca27693bac44.tar.gz plus-7969f0590204ac48d74e98c3211bca27693bac44.tar.bz2 plus-7969f0590204ac48d74e98c3211bca27693bac44.tar.xz plus-7969f0590204ac48d74e98c3211bca27693bac44.zip |
Convert TargetCursorType enum into strong typed enum.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r-- | src/being/actorsprite.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index 9ba16a64c..72ceb2f84 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -102,7 +102,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor /** * Sets the target animation for this actor. */ - void setTargetType(const TargetCursorType::Type type); + void setTargetType(const TargetCursorTypeT type); /** * Untargets the actor. @@ -214,7 +214,8 @@ class ActorSprite notfinal : public CompoundSprite, public Actor static void cleanupTargetCursors(); /** Animated target cursors. */ - static AnimatedSprite *targetCursor[TargetCursorType::NUM_TCT] + static AnimatedSprite *targetCursor + [static_cast<size_t>(TargetCursorType::NUM_TCT)] [static_cast<size_t>(TargetCursorSize::NUM_TC)]; static bool loaded; |