Tramway SDK
Public Member Functions | Protected Attributes | Friends | List of all members
tram::Ext::Kitchensink::AnimationStateComponent Class Reference

#include <animationtable.h>

Inheritance diagram for tram::Ext::Kitchensink::AnimationStateComponent:
tram::EntityComponent

Public Member Functions

void EventHandler (Event &event)
 
void Start ()
 
void SwitchState (name_t state)
 
void SetAnimationTable (name_t name)
 
void SetAnimationComponent (AnimationComponent *component)
 
AnimationComponentGetAnimationComponent ()
 
- Public Member Functions inherited from tram::EntityComponent
 EntityComponent ()
 
virtual ~EntityComponent ()
 
virtual void Init ()
 
bool IsReady ()
 
bool IsInit ()
 
EntityGetParent ()
 
void SetParent (Entity *parent)
 

Protected Attributes

AnimationTabletable = nullptr
 
AnimationComponentcomponent = nullptr
 
std::vector< name_tstates
 
- Protected Attributes inherited from tram::EntityComponent
size_t resources_waiting = 0
 
bool is_ready = false
 
bool is_init = false
 
Entityparent = nullptr
 

Friends

class AnimationTable
 

Additional Inherited Members

- Protected Member Functions inherited from tram::EntityComponent
void ResourceReady ()
 

Member Function Documentation

◆ EventHandler()

void tram::Ext::Kitchensink::AnimationStateComponent::EventHandler ( Event event)
inlinevirtual

Implements tram::EntityComponent.

◆ GetAnimationComponent()

AnimationComponent * tram::Ext::Kitchensink::AnimationStateComponent::GetAnimationComponent ( )
inline

◆ SetAnimationComponent()

void tram::Ext::Kitchensink::AnimationStateComponent::SetAnimationComponent ( AnimationComponent component)
inline

◆ SetAnimationTable()

void tram::Ext::Kitchensink::AnimationStateComponent::SetAnimationTable ( name_t  name)
inline

◆ Start()

void tram::Ext::Kitchensink::AnimationStateComponent::Start ( )
virtual

Implements tram::EntityComponent.

◆ SwitchState()

void tram::Ext::Kitchensink::AnimationStateComponent::SwitchState ( name_t  state)
inline

Friends And Related Function Documentation

◆ AnimationTable

friend class AnimationTable
friend

Member Data Documentation

◆ component

AnimationComponent* tram::Ext::Kitchensink::AnimationStateComponent::component = nullptr
protected

◆ states

std::vector<name_t> tram::Ext::Kitchensink::AnimationStateComponent::states
protected

◆ table

AnimationTable* tram::Ext::Kitchensink::AnimationStateComponent::table = nullptr
protected

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