summaryrefslogtreecommitdiff
path: root/src/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 21:06:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:06:51 +0300
commitf92e278da564dab15d984dcaba153c1a92752651 (patch)
tree7622fb94e5cb361b1c9190d36bead3d977a79d63 /src/actorsprite.h
parent663eec5b6b98daa2649d966455a10a04d6e3d99b (diff)
downloadplus-f92e278da564dab15d984dcaba153c1a92752651.tar.gz
plus-f92e278da564dab15d984dcaba153c1a92752651.tar.bz2
plus-f92e278da564dab15d984dcaba153c1a92752651.tar.xz
plus-f92e278da564dab15d984dcaba153c1a92752651.zip
add support for target cursor animations.
updated target cursor to new images by Alige.
Diffstat (limited to 'src/actorsprite.h')
-rw-r--r--src/actorsprite.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/actorsprite.h b/src/actorsprite.h
index 345f4a31f..4b2b07c52 100644
--- a/src/actorsprite.h
+++ b/src/actorsprite.h
@@ -35,7 +35,7 @@
#include "localconsts.h"
-class SimpleAnimation;
+class AnimatedSprite;
class StatusEffect;
class ActorSpriteListener;
@@ -223,28 +223,21 @@ private:
/** Remove the target cursors from memory */
static void cleanupTargetCursors();
- /**
- * Helper function for loading target cursors
- */
- static void loadTargetCursor(const std::string &filename,
- const int width, const int height,
- const int type, const int size);
-
- /** Images of the target cursor. */
- static ImageSet *targetCursorImages[NUM_TCT][NUM_TC];
-
/** Animated target cursors. */
- static SimpleAnimation *targetCursor[NUM_TCT][NUM_TC];
+ static AnimatedSprite *targetCursor[NUM_TCT][NUM_TC];
static bool loaded;
/** Target cursor being used */
- SimpleAnimation *mUsedTargetCursor;
+ AnimatedSprite *mUsedTargetCursor;
typedef std::list<ActorSpriteListener*> ActorSpriteListeners;
typedef ActorSpriteListeners::iterator ActorSpriteListenerIterator;
ActorSpriteListeners mActorSpriteListeners;
+ int mCursorPaddingX;
+ int mCursorPaddingY;
+
/** Reset particle status effects on next redraw? */
bool mMustResetParticles;
};