From 13baf331faa43913cb836661113ba63d3c2bc0a3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 May 2014 13:12:06 +0300 Subject: Move targetcursortype into separate file. --- src/being/actorsprite.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/being/actorsprite.h') diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h index b646500da..1c08e4333 100644 --- a/src/being/actorsprite.h +++ b/src/being/actorsprite.h @@ -31,6 +31,7 @@ #include "being/actortype.h" #include "being/compoundsprite.h" #include "being/targetcursorsize.h" +#include "being/targetcursortype.h" #include "particle/particlecontainer.h" @@ -46,14 +47,6 @@ class ActorSpriteListener; class ActorSprite : public CompoundSprite, public Actor { public: - enum TargetCursorType - { - TCT_NONE = -1, - TCT_NORMAL = 0, - TCT_IN_RANGE, - NUM_TCT - }; - explicit ActorSprite(const int id); A_DELETE_COPY(ActorSprite) @@ -108,7 +101,7 @@ public: /** * Sets the target animation for this actor. */ - void setTargetType(const TargetCursorType type); + void setTargetType(const TargetCursorType::Type type); /** * Untargets the actor. @@ -218,7 +211,8 @@ private: static void cleanupTargetCursors(); /** Animated target cursors. */ - static AnimatedSprite *targetCursor[NUM_TCT][TargetCursorSize::NUM_TC]; + static AnimatedSprite *targetCursor[TargetCursorType::NUM_TCT] + [TargetCursorSize::NUM_TC]; static bool loaded; -- cgit v1.2.3-70-g09d2