summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 12:56:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 12:56:09 +0300
commit7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2 (patch)
tree1be01271ab942e0e6e321fa2ce45a6b527f97b07 /src/being/actorsprite.h
parentea0b61e18f36f28806940b00a2cddaef912c3340 (diff)
downloadmanaplus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.gz
manaplus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.bz2
manaplus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.tar.xz
manaplus-7b4b302ffe79cdba0fa35b66741a9d6c3d9184f2.zip
Move targetcursorsize into separate file.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 5b9c438d8..b646500da 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -30,6 +30,7 @@
#include "being/actor.h"
#include "being/actortype.h"
#include "being/compoundsprite.h"
+#include "being/targetcursorsize.h"
#include "particle/particlecontainer.h"
@@ -45,14 +46,6 @@ class ActorSpriteListener;
class ActorSprite : public CompoundSprite, public Actor
{
public:
- enum TargetCursorSize
- {
- TC_SMALL = 0,
- TC_MEDIUM,
- TC_LARGE,
- NUM_TC
- };
-
enum TargetCursorType
{
TCT_NONE = -1,
@@ -103,8 +96,8 @@ public:
/**
* Returns the required size of a target cursor for this being.
*/
- virtual TargetCursorSize getTargetCursorSize() const A_WARN_UNUSED
- { return TC_MEDIUM; }
+ virtual TargetCursorSize::Size getTargetCursorSize() const A_WARN_UNUSED
+ { return TargetCursorSize::MEDIUM; }
virtual int getTargetOffsetX() const A_WARN_UNUSED
{ return 0; }
@@ -225,7 +218,7 @@ private:
static void cleanupTargetCursors();
/** Animated target cursors. */
- static AnimatedSprite *targetCursor[NUM_TCT][NUM_TC];
+ static AnimatedSprite *targetCursor[NUM_TCT][TargetCursorSize::NUM_TC];
static bool loaded;