38SSequenceAnimation::SSequenceAnimation(
SScene* scene,
const std::string& animationName,
const unsigned short&
id) :
SAnim(scene, animationName, 0, id,
SAnim::SO3_SEQUENCE_ANIM)
46SSequenceAnimation::SSequenceAnimation() :
SAnim(0,
"", 0, 0, SO3_UNKNOWN_ANIM)
55 ogreAnimationState = 0;
67 return ogreAnimationState;
81 (*iAnimationTrack)->Update(timePosition);
88 mLastPos = timePosition;
100 SAnimTrackList::const_iterator iAnimationTrack = animationTrackCopy.begin();
101 while (iAnimationTrack != animationTrackCopy.end())
117 SAnimTrackList::const_iterator iAnimationTrack = animationTrackCopy.begin();
118 while (iAnimationTrack != animationTrackCopy.end())
136 Ogre::Real maxtime = (evt.timeSinceLastFrame <= 0.016f) ? evt.timeSinceLastFrame : (evt.timeSinceLastFrame * 0.016f / evt.timeSinceLastFrame);
152 mLastPos = currentPos;
void AddTime(const float &time)
void SetPaused(const bool &pauseState)
Ogre::Animation * ogreAnimation
void SetLength(const float &length)
SAnimTrackList animationTrackList
Ogre::SceneManager * GetOgreScenePointer()
void UpdateAnimationLength()
virtual void SetEnable(const bool &enable)
virtual Ogre::AnimationState * _GetOgreAnimationState()
virtual void _UpdateImpl(const Ogre::FrameEvent &evt)
virtual SAnimTrack * CreateAnimationTrackImpl(const std::string &newAnimationTrackName)
virtual void SetTimePosition(const float &timePosition)
void EnableTrackKeys(const bool &enable)
std::vector< SAnimTrack * > SAnimTrackList