diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-07 21:51:35 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-07 21:51:35 -0700 |
commit | 450edb5900a46ada0cc6292f0079a31ea5d04573 (patch) | |
tree | a8b110ef8c1057da3c7d8fb9f1fbcdf88327db88 /src/simpleanimation.cpp | |
parent | 303609031d8b70f0b20002b28e2de450e0ad7fb7 (diff) | |
download | mana-450edb5900a46ada0cc6292f0079a31ea5d04573.tar.gz mana-450edb5900a46ada0cc6292f0079a31ea5d04573.tar.bz2 mana-450edb5900a46ada0cc6292f0079a31ea5d04573.tar.xz mana-450edb5900a46ada0cc6292f0079a31ea5d04573.zip |
Some more include cleanups.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r-- | src/simpleanimation.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp index 17d9ce60..9066ed7f 100644 --- a/src/simpleanimation.cpp +++ b/src/simpleanimation.cpp @@ -19,14 +19,22 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "graphics.h" #include "log.h" #include "simpleanimation.h" +#include "resources/animation.h" #include "resources/image.h" #include "resources/imageset.h" #include "resources/resourcemanager.h" +SimpleAnimation::SimpleAnimation(Animation *animation): + mAnimation(animation), + mAnimationTime(0), + mAnimationPhase(0), + mCurrentFrame(mAnimation->getFrame(0)) +{ +}; + SimpleAnimation::SimpleAnimation(xmlNodePtr animationNode): mAnimationTime(0), mAnimationPhase(0) |