A 3D model for an entity.
Definition: EntityModel.h:23
virtual void Update()
Updates the model status.
Definition: EntityModel.cpp:52
virtual bool IsVisible() const
Checks the model visibility.
Definition: EntityModel.cpp:59
Ogre::Entity * model_
The model.
Definition: EntityModel.h:103
virtual void SetVisible(const bool visible)
Toggles the model visibility.
Definition: EntityModel.cpp:57
virtual ~EntityModel()
Definition: EntityModel.cpp:48
Ogre::Entity * GetModel()
Definition: EntityModel.cpp:61
virtual void PlayAnimationContinue(const Ogre::String &animation)
Resumes an animation.
Definition: EntityModel.cpp:94
EntityModel()
Constructor.
Ogre::AnimationState * animation_current_
The current animation state.
Definition: EntityModel.h:108
virtual void UpdateAnimation(const float delta)
Updates the animation.
Definition: EntityModel.cpp:110
virtual void PlayAnimation(const Ogre::String &animation, AnimationState state, AnimationPlayType play_type, const float start, const float end)
Plays an animation of the model.
Definition: EntityModel.cpp:63
Any entity in a field.
Definition: Entity.h:101
AnimationPlayType
Types of animations.
Definition: Entity.h:124
AnimationState
Entity animation states.
Definition: Entity.h:108
Ogre::String String
Definition: TypeDefine.h:37