Tramway SDK
Public Member Functions | List of all members
tram::PlayerComponent Class Reference

#include <player.h>

Inheritance diagram for tram::PlayerComponent:
tram::EntityComponent

Public Member Functions

void EventHandler (Event &event)
 
void Init ()
 
 PlayerComponent ()
 
 ~PlayerComponent ()
 
void SetControllerComponent (ControllerComponent *comp)
 
void Start ()
 
void MoveUpdate ()
 
- Public Member Functions inherited from tram::EntityComponent
 EntityComponent ()
 
virtual ~EntityComponent ()
 
bool IsReady ()
 
bool IsInit ()
 
EntityGetParent ()
 
void SetParent (Entity *parent)
 

Additional Inherited Members

- Protected Member Functions inherited from tram::EntityComponent
void ResourceReady ()
 
- Protected Attributes inherited from tram::EntityComponent
size_t resources_waiting = 0
 
bool is_ready = false
 
bool is_init = false
 
Entityparent = nullptr
 

Constructor & Destructor Documentation

◆ PlayerComponent()

tram::PlayerComponent::PlayerComponent ( )

◆ ~PlayerComponent()

tram::PlayerComponent::~PlayerComponent ( )

Member Function Documentation

◆ EventHandler()

void tram::PlayerComponent::EventHandler ( Event event)
virtual

Implements tram::EntityComponent.

◆ Init()

void tram::PlayerComponent::Init ( )
virtual

Reimplemented from tram::EntityComponent.

◆ MoveUpdate()

void tram::PlayerComponent::MoveUpdate ( )
inline

◆ SetControllerComponent()

void tram::PlayerComponent::SetControllerComponent ( ControllerComponent comp)
inline

◆ Start()

void tram::PlayerComponent::Start ( )
inlinevirtual

Implements tram::EntityComponent.


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