22 #ifndef FIFE_GUI_WIDGETS_ANIMATIONICON_H 23 #define FIFE_GUI_WIDGETS_ANIMATIONICON_H 28 #include <fifechan/image.hpp> 29 #include <fifechan/platform.hpp> 30 #include <fifechan.hpp> 120 virtual void logic();
virtual ~AnimationIcon()
Destructor.
bool isRepeating() const
Gets repeating of the animation.
void setAnimation(FIFE::AnimationPtr animation)
Sets the animation to display.
void pause()
Stops the animation at the current frame.
const Image * mCurrentImage
Currently used image.
bool mPlay
True if the animation was started, otherwise false.
bool isPlaying() const
Gets if the animation is playing.
void setRepeating(bool repeat)
Sets repeating of the animation.
FIFE::AnimationPtr getAnimation() const
Gets the current animation.
FIFE::AnimationPtr mAnimation
The animation to display.
FIFE::TimeManager * mTimemanager
Holds pointer to Fifes TimeManager.
Implements an icon capable of displaying an animation.
void stop()
Stops the animation and sets the current frame to the first frame.
void play()
Starts the animation from beginning.
int32_t mFrameIndex
The last used frame index from the animation.
AnimationIcon()
Default constructor.
bool mRepeat
True if the animation should be repeating, otherwise false.
uint32_t mAnimtime
The time as the animation was started.