From 7467afb637960fc8f3c8e631b95bb3e662285057 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 12 Dec 2006 15:06:06 +0000 Subject: Moved Action, Animation and Frame (renamed from AnimationPhase) classes into the resources directory, since they are part of the SpriteDef class. --- src/animatedsprite.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/animatedsprite.h') 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 #include +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 -- cgit v1.2.3-70-g09d2