diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-07 19:07:04 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-07 19:07:04 +0100 |
commit | a3157908d23fd711ea96797dffce064953cb8fb6 (patch) | |
tree | 2f237b21118461a9948f3ccb829f62038564dedf /src/simpleanimation.h | |
parent | 1208d5383a9bfd03f338ccf71fb9764790b2e1a9 (diff) | |
download | mana-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.h | 7 |
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; |