Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AnimationSystem::Skeletal::SkeletonAnimator Class Reference

Animator for skeletal animations. More...

#include <SkeletonAnimator.h>

Inheritance diagram for AnimationSystem::Skeletal::SkeletonAnimator:
Collaboration diagram for AnimationSystem::Skeletal::SkeletonAnimator:

Public Member Functions

void Create (unique_ptr< JsonResult > const &jsonDoc, StringIDMap< Bone > const &bonesInInitialPosition)
 
void Update (float frameTime)
 
float GetCurrentAnimationTime () const override
 
void ApplyAnimation (Bone &bone) const
 Applies the current animation at the current time to the provided bone.
 
std::vector< StringId > GetAllAnimationIDs () const
 
std::vector< string > GetAllAnimationNames () const override
 
void SetCurrentAnimation (string const &newName) override
 
std::optional< string > CurrentAnimationName () const override
 
- Public Member Functions inherited from AnimationSystem::Sprite::ISpriteAnimator
virtual void SetCurrentAnimation (std::string const &animationName)=0
 
virtual std::optional< std::string > CurrentAnimationName () const =0
 
virtual float GetCurrentAnimationTime () const =0
 
virtual std::vector< std::string > GetAllAnimationNames () const =0
 

Detailed Description

Animator for skeletal animations.

Member Function Documentation

◆ CurrentAnimationName()

std::optional< string > AnimationSystem::Skeletal::SkeletonAnimator::CurrentAnimationName ( ) const
inlineoverridevirtual

◆ GetAllAnimationNames()

std::vector< string > AnimationSystem::Skeletal::SkeletonAnimator::GetAllAnimationNames ( ) const
inlineoverridevirtual

◆ GetCurrentAnimationTime()

float AnimationSystem::Skeletal::SkeletonAnimator::GetCurrentAnimationTime ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following files: