summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-05-23 21:35:01 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-05-23 21:35:01 +0000
commit114e76641ccde78fcb9f4ca2fcf7c9a909e176ba (patch)
tree9efa7737187ae8e239a2914cbb57e0e36f5efc92 /src/simpleanimation.h
parent1ddb44f5caf3e0bc93b7d19cc6e227b10e4b4c41 (diff)
downloadmana-114e76641ccde78fcb9f4ca2fcf7c9a909e176ba.tar.gz
mana-114e76641ccde78fcb9f4ca2fcf7c9a909e176ba.tar.bz2
mana-114e76641ccde78fcb9f4ca2fcf7c9a909e176ba.tar.xz
mana-114e76641ccde78fcb9f4ca2fcf7c9a909e176ba.zip
Added a missing include and fixed a bug with cleaning up target cursor
animations.
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r--src/simpleanimation.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h
index 14793c2f..561c540d 100644
--- a/src/simpleanimation.h
+++ b/src/simpleanimation.h
@@ -38,9 +38,8 @@ class Graphics;
class SimpleAnimation
{
public:
-
/**
- * Creates a simple animation with an already created animation
+ * Creates a simple animation with an already created animation.
*/
SimpleAnimation(Animation *animation):
mAnimation(animation),
@@ -50,7 +49,7 @@ class SimpleAnimation
{};
/**
- * Creates a simple animation that creates its animation from XML Data
+ * Creates a simple animation that creates its animation from XML Data.
*/
SimpleAnimation(xmlNodePtr animationNode);
@@ -61,10 +60,17 @@ class SimpleAnimation
Image *getCurrentImage() const;
private:
- Animation *mAnimation; /**< The hosted animation */
- unsigned int mAnimationTime; /**< Time in game ticks the current frame is shown*/
- unsigned int mAnimationPhase; /**< Index of current animation phase*/
- Frame *mCurrentFrame; /**< Current animation phase */
+ /** The hosted animation. */
+ Animation *mAnimation;
+
+ /** Time in game ticks the current frame is shown. */
+ unsigned int mAnimationTime;
+
+ /** Index of current animation phase. */
+ unsigned int mAnimationPhase;
+
+ /** Current animation phase. */
+ Frame *mCurrentFrame;
};
#endif