summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r--src/simpleanimation.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h
index bf79f606..3fb95c44 100644
--- a/src/simpleanimation.h
+++ b/src/simpleanimation.h
@@ -37,7 +37,8 @@ class SimpleAnimation
{
public:
/**
- * Creates a simple animation with an already created animation.
+ * Creates a simple animation with an already created \a animation.
+ * Takes ownership over the given animation.
*/
SimpleAnimation(Animation *animation);
@@ -54,7 +55,7 @@ class SimpleAnimation
void update(int timePassed);
- bool draw(Graphics* graphics, int posX, int posY) const;
+ bool draw(Graphics *graphics, int posX, int posY) const;
/**
* Resets the animation.
@@ -64,6 +65,8 @@ class SimpleAnimation
Image *getCurrentImage() const;
private:
+ void initializeAnimation(xmlNodePtr animationNode);
+
/** The hosted animation. */
Animation *mAnimation;