Tramway SDK
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
tram::EntityComponent Class Referenceabstract

#include <entitycomponent.h>

Inheritance diagram for tram::EntityComponent:
tram::AnimationComponent tram::AudioComponent tram::ControllerComponent tram::Ext::Kitchensink::AnimationStateComponent tram::LightComponent tram::ParticleComponent tram::PhysicsComponent tram::PlayerComponent tram::RenderComponent tram::SpriteComponent tram::TemplateComponent tram::TriggerComponent

Public Member Functions

 EntityComponent ()
 
virtual ~EntityComponent ()
 
virtual void Init ()
 
virtual void EventHandler (Event &event)=0
 
bool IsReady ()
 
bool IsInit ()
 
EntityGetParent ()
 
void SetParent (Entity *parent)
 

Protected Member Functions

void ResourceReady ()
 
virtual void Start ()=0
 

Protected Attributes

size_t resources_waiting = 0
 
bool is_ready = false
 
bool is_init = false
 
Entityparent = nullptr
 

Friends

template<typename T >
class ResourceProxy
 
void Async::FinishResources ()
 

Constructor & Destructor Documentation

◆ EntityComponent()

tram::EntityComponent::EntityComponent ( )

◆ ~EntityComponent()

tram::EntityComponent::~EntityComponent ( )
virtual

Member Function Documentation

◆ EventHandler()

virtual void tram::EntityComponent::EventHandler ( Event event)
pure virtual

◆ GetParent()

Entity * tram::EntityComponent::GetParent ( )
inline

◆ Init()

virtual void tram::EntityComponent::Init ( )
inlinevirtual

◆ IsInit()

bool tram::EntityComponent::IsInit ( )
inline

◆ IsReady()

bool tram::EntityComponent::IsReady ( )
inline

◆ ResourceReady()

void tram::EntityComponent::ResourceReady ( )
inlineprotected

◆ SetParent()

void tram::EntityComponent::SetParent ( Entity parent)
inline

◆ Start()

virtual void tram::EntityComponent::Start ( )
protectedpure virtual

Friends And Related Function Documentation

◆ Async::FinishResources

void Async::FinishResources ( )
friend

◆ ResourceProxy

template<typename T >
friend class ResourceProxy
friend

Member Data Documentation

◆ is_init

bool tram::EntityComponent::is_init = false
protected

◆ is_ready

bool tram::EntityComponent::is_ready = false
protected

◆ parent

Entity* tram::EntityComponent::parent = nullptr
protected

◆ resources_waiting

size_t tram::EntityComponent::resources_waiting = 0
protected

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