Component managing current animation playback state.
float _timer
Playback timer in seconds.
void setCurrentFrameIndex(int frameIndex)
Set the current frame index.
std::string _currentClipName
Current animation clip name.
std::string getCurrentClipName() const
Get the current animation clip name.
bool _loop
Animation looping flag.
int _currentFrameIndex
Current frame index.
~Animation() override=default
ComponentType getType() const override
Get the component type ID.
bool isPlaying() const
Check if animation is playing.
int getCurrentFrameIndex() const
Get the current frame index.
bool isLooping() const
Check if animation is looping.
bool _isPlaying
Animation playing state.
void setCurrentClipName(const std::string &clipName)
Set the current animation clip name.
void setLoop(bool loop)
Set the looping state.
float getTimer() const
Get the playback timer.
void setPlaying(bool playing)
Set the playing state.
Animation(const std::string &initialClip="idle", bool loop=true, bool isPlaying=true)
Constructor with animation parameters.
void setTimer(float timer)
Set the playback timer.
Base interface for all ECS components.
Maximum number of distinct component types supported by the Registry.
std::size_t ComponentType
Type alias for component identification.