summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 13:12:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 13:12:06 +0300
commit13baf331faa43913cb836661113ba63d3c2bc0a3 (patch)
tree03ddeb1936a712228c0514dc70926f2f74177a54 /src/being/actorsprite.h
parent7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2 (diff)
downloadplus-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.gz
plus-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.bz2
plus-13baf331faa43913cb836661113ba63d3c2bc0a3.tar.xz
plus-13baf331faa43913cb836661113ba63d3c2bc0a3.zip
Move targetcursortype into separate file.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h14
1 files changed, 4 insertions, 10 deletions
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;