summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-07 19:07:04 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-07 19:07:04 +0100
commita3157908d23fd711ea96797dffce064953cb8fb6 (patch)
tree2f237b21118461a9948f3ccb829f62038564dedf /src/simpleanimation.h
parent1208d5383a9bfd03f338ccf71fb9764790b2e1a9 (diff)
downloadmana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.gz
mana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.bz2
mana-a3157908d23fd711ea96797dffce064953cb8fb6.tar.xz
mana-a3157908d23fd711ea96797dffce064953cb8fb6.zip
Nicer way of indicating that we're waiting on the server
No longer a dialog with an annoying progress bar (due to going back and forth), but rather a progress indicator that integrates better with the background.
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;