10 #include <Atoms/Globals.h>
11 #include <AtomsCore/Globals.h>
12 #include <AtomsCore/AtomsMath.h>
13 #include <Atoms/AnimationStateClip.h>
47 const std::string &name,
64 const std::string &name,
68 unsigned int blendOut,
83 const std::string& name,
87 unsigned int blendOut,
105 inline void setName(
const std::string &name);
111 inline const std::string& name()
const;
123 inline void removeClip(
unsigned int &clipId);
143 inline unsigned int numClips()
const;
146 inline void clearClips();
152 inline void setId(
int id);
158 inline int id()
const;
164 inline bool isEmpty()
const;
206 inline void setBlendInFrames(
unsigned int frames);
212 inline unsigned int blendInFrames()
const;
218 inline void setBlendOutFrames(
unsigned int frames);
224 inline unsigned int blendOutFrames()
const;
230 inline void setRandomLoop(
bool value);
236 inline bool randomLoop()
const;
242 inline const std::vector<unsigned int>& validClips()
const;
248 inline const std::vector<unsigned int>& validMotionTypeClips(
unsigned int motionType)
const;
260 inline void setVelocity(
double velocity);
266 inline double velocity()
const;
272 inline void setIsLocomotion(
const bool value);
278 inline bool isLocomotion()
const;
284 inline void setLocomotionName(
const std::string& value);
290 inline const std::string& locomotionName()
const;
298 std::string m_locomotionName;
301 std::vector<AnimationStateClip> m_clips;
304 std::vector<unsigned int> m_validClips;
307 std::vector<std::vector<unsigned int>> m_validMotionTypeClips;
322 unsigned int m_blendInFrames;
325 unsigned int m_blendOutFrames;
340 #include "AnimationState.impl.h"
Animation State clip.
Definition: AnimationStateClip.h:23
Animation State.
Definition: AnimationState.h:25
AnimationState(const AnimationState &other)
Copy constructor.
AnimationState()
Constructor.
AnimationState(const std::string &name, int id, const AtomsCore::Vector3 maxTurn, unsigned int blendIn, unsigned int blendOut, bool randomLoop)
Constructor.
AnimationState(const std::string &name, int id, const AtomsCore::Vector3 maxTurn, unsigned int blendIn, unsigned int blendOut)
Constructor.
AnimationState & operator=(const AnimationState &other)
Assign Operator.
AnimationState(const std::string &name, int id, const AtomsCore::Vector3 maxTurn, unsigned int blendIn, unsigned int blendOut, bool randomLoop, double velocity)
Constructor.
AnimationState(const std::string &name, int id)
Constructor.
void updateValidClips()
Updated the valid clips list of this state.
~AnimationState()
Destructor.
AtomsMath::Vector2 Vector2
Vector2 class.
Definition: AtomsMath.h:54
AtomsMath::Vector2i Vector2i
Vector2 class.
Definition: AtomsMath.h:56
AtomsMath::Vector3 Vector3
Vector3 class.
Definition: AtomsMath.h:57
Atoms namespace.
Definition: Agent.h:29