#include <AnimationsComponent.hpp>
◆ AnimationsComponent() [1/2]
| BBM::AnimationsComponent::AnimationsComponent |
( |
WAL::Entity & |
entity, |
|
|
const std::string & |
path, |
|
|
int |
animIndex, |
|
|
bool |
play = true |
|
) |
| |
|
explicit |
ctor entity and the path of the animation file
◆ AnimationsComponent() [2/2]
◆ ~AnimationsComponent()
| BBM::AnimationsComponent::~AnimationsComponent |
( |
| ) |
|
|
overridedefault |
◆ clone()
Clone a component for another or the same entity.
- Parameters
-
| entity | The entity that owns the ne component. |
Implements WAL::Component.
◆ getCurrentAnimFrameCounter()
| size_t BBM::AnimationsComponent::getCurrentAnimFrameCounter |
( |
| ) |
const |
get animation frame counter
◆ getCurrentAnimIndex()
| size_t BBM::AnimationsComponent::getCurrentAnimIndex |
( |
| ) |
const |
get the current animation index
◆ getCurrentModelAnim()
◆ incCurrentAnimFrameCounter()
| void BBM::AnimationsComponent::incCurrentAnimFrameCounter |
( |
| ) |
|
Increment the internal anim counter.
◆ isAnimDisabled()
| bool BBM::AnimationsComponent::isAnimDisabled |
( |
| ) |
const |
To know if the animation will be updated or not.
◆ operator=()
◆ resetCurrentAnimFrameCounter()
| void BBM::AnimationsComponent::resetCurrentAnimFrameCounter |
( |
| ) |
|
Set the internal anim counter to 0.
◆ setAnimDisabled()
| void BBM::AnimationsComponent::setAnimDisabled |
( |
bool |
disable | ) |
|
Allow to play pause animations.
◆ setAnimIndex()
| void BBM::AnimationsComponent::setAnimIndex |
( |
int |
animIndex | ) |
|
Set the animation index to use.
◆ setCurrentAnimFrameCounter()
| void BBM::AnimationsComponent::setCurrentAnimFrameCounter |
( |
size_t |
animFrameCounter | ) |
|
set the anim frame counter
◆ _animDisabled
| bool BBM::AnimationsComponent::_animDisabled |
|
private |
Bool allowing to play pause an animation.
◆ _currentAnimIndex
| int BBM::AnimationsComponent::_currentAnimIndex |
|
private |
◆ _modelAnimation
To get the animation data.
The documentation for this class was generated from the following files: