18#include <OgreString.h>
86 void SetTime(
const float time );
126 virtual void AddUVKeyFrame(
const float time,
const Ogre::Vector4& uv);
140 const float u1,
const float v1,
const float u2,
const float v2
209 std::vector<Background2DKeyFrameUV>
uv_;
An animation in the background of a field.
Definition: Background2DAnimation.h:28
Background2DAnimation()
Constructor.
const Ogre::String & GetName() const
Retrieves the animation name.
Definition: Background2DAnimation.cpp:53
State
Repetition status of the animation.
Definition: Background2DAnimation.h:52
@ ONCE
The animation must be played once.
Definition: Background2DAnimation.h:57
@ LOOPED
The animation must loop indefinitely.
Definition: Background2DAnimation.h:62
void SetTime(const float time)
Sets the time the animation has been running.
Definition: Background2DAnimation.cpp:55
void AddTime(const float time)
Adds time, so the animation state is changed according to it.
Definition: Background2DAnimation.cpp:32
std::vector< Background2DKeyFrameUV > uv_
Keyframe list.
Definition: Background2DAnimation.h:209
void SetLength(const float time)
Sets the duration of the animation.
Definition: Background2DAnimation.cpp:59
float GetTime() const
Retrieves the time the animation has been running.
Definition: Background2DAnimation.cpp:57
float length_
The duration of the animation.
Definition: Background2DAnimation.h:173
Background2D * background_
The background the animation belongs to.
Definition: Background2DAnimation.h:158
virtual void AddUVKeyFrame(const VGears::KeyFrame key_frame)
Adds a keyframe to the animation.
Definition: Background2DAnimation.cpp:63
float time_
The animation current time.
Definition: Background2DAnimation.h:168
Ogre::String name_
The animation name.
Definition: Background2DAnimation.h:153
virtual ~Background2DAnimation()
Destructor.
Definition: Background2DAnimation.cpp:30
float GetLength() const
Retrieves the duration of the animation.
Definition: Background2DAnimation.cpp:61
int tile_index_
The index of the tile tha animation applies to.
Definition: Background2DAnimation.h:163
A field background.
Definition: Background2D.h:29
Ogre::String String
Definition: TypeDefine.h:37
A keyframe.
Definition: Background2DAnimation.h:178
float u1
Keyframe vector component.
Definition: Background2DAnimation.h:188
float v2
Keyframe vector component.
Definition: Background2DAnimation.h:203
float u2
Keyframe vector component.
Definition: Background2DAnimation.h:198
float v1
Keyframe vector component.
Definition: Background2DAnimation.h:193
float time
Keyframe time.
Definition: Background2DAnimation.h:183
A tile key frame.
Definition: VGearsTile.h:44