From f92e278da564dab15d984dcaba153c1a92752651 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 21:06:51 +0300 Subject: add support for target cursor animations. updated target cursor to new images by Alige. --- src/actorsprite.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src/actorsprite.h') 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 ActorSpriteListeners; typedef ActorSpriteListeners::iterator ActorSpriteListenerIterator; ActorSpriteListeners mActorSpriteListeners; + int mCursorPaddingX; + int mCursorPaddingY; + /** Reset particle status effects on next redraw? */ bool mMustResetParticles; }; -- cgit v1.2.3-70-g09d2