47 const std::string &dyePalettes = std::string());
An animation consists of several frames, each with their own delay and offset.
int getLength() const
Returns the length of this animation in frames.
A central point of control for graphics.
Defines a class for loading and storing images.
This class is a leightweight alternative to the Sprite class.
Frame * mCurrentFrame
Current animation phase.
int mAnimationTime
Time in milliseconds the current frame is shown.
int mAnimationPhase
Index of current animation phase.
bool mInitialized
Tell whether the animation is ready.
Image * getCurrentImage() const
bool draw(Graphics *graphics, int posX, int posY) const
Animation mAnimation
The hosted animation.
void reset()
Resets the animation.
A single frame in an animation, with a delay and an offset.