diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-12 15:06:06 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-12 15:06:06 +0000 |
commit | 7467afb637960fc8f3c8e631b95bb3e662285057 (patch) | |
tree | 34ba6896c8795ab3c1e6bb7fccbce27a5dd491ed /src/animatedsprite.h | |
parent | f4f6c66a1ebe115dde9dc7a9b793b36ddc708d3c (diff) | |
download | mana-7467afb637960fc8f3c8e631b95bb3e662285057.tar.gz mana-7467afb637960fc8f3c8e631b95bb3e662285057.tar.bz2 mana-7467afb637960fc8f3c8e631b95bb3e662285057.tar.xz mana-7467afb637960fc8f3c8e631b95bb3e662285057.zip |
Moved Action, Animation and Frame (renamed from AnimationPhase) classes into
the resources directory, since they are part of the SpriteDef class.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r-- | src/animatedsprite.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h index dde570e2..101ff159 100644 --- a/src/animatedsprite.h +++ b/src/animatedsprite.h @@ -29,8 +29,9 @@ #include <map> #include <string> +class Animation; class Graphics; -struct AnimationPhase; +struct Frame; /** * Animates a sprite by adding playback state. @@ -72,13 +73,13 @@ class AnimatedSprite /** * Inform the animation of the passed time so that it can output the - * correct animation phase. + * correct animation frame. */ void update(int time); /** - * Draw the current animation phase at the coordinates given in screen + * Draw the current animation frame at the coordinates given in screen * pixels. */ bool @@ -103,7 +104,7 @@ class AnimatedSprite SpriteDef *mSprite; /**< The sprite definition. */ Action *mAction; /**< The currently active action. */ Animation *mAnimation; /**< The currently active animation. */ - AnimationPhase *mFrame; /**< The currently active frame. */ + Frame *mFrame; /**< The currently active frame. */ }; #endif |