39 mTimemanager(
FIFE::TimeManager::instance()),
virtual ~AnimationIcon()
Destructor.
bool isRepeating() const
Gets repeating of the animation.
uint32_t getTime() const
Get the time.
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.
int32_t getFrameIndex(uint32_t timestamp)
Get the frame index that matches given timestamp.
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.
ImagePtr getFrame(int32_t index)
Gets the frame iamge that matches the given index.
AnimationIcon()
Default constructor.
SharedPtr< Animation > AnimationPtr
uint32_t getFrameCount() const
Get the number of frames.
bool mRepeat
True if the animation should be repeating, otherwise false.
uint32_t getDuration() const
Gets the total duration for the whole animation.
uint32_t mAnimtime
The time as the animation was started.