Tramway SDK
Public Member Functions | Public Attributes | Protected Attributes | List of all members
tram::Player Class Reference

#include <player.h>

Inheritance diagram for tram::Player:
tram::Entity

Public Member Functions

 Player ()
 
 ~Player ()
 
void Load ()
 
void Unload ()
 
void Serialize ()
 
void SerializeString (std::string &str)
 
void UpdateParameters ()
 
void SetParameters ()
 
void MessageHandler (Message &msg)
 
name_t GetType ()
 
- Public Member Functions inherited from tram::Entity
 Entity ()
 
 Entity (name_t name)
 
 Entity (const SharedEntityData &)
 
virtual ~Entity ()
 
name_t GetName () const
 
id_t GetID () const
 
WorldCellGetCell ()
 
bool IsLoaded () const
 
bool IsAutoLoad () const
 
bool IsInInterior () const
 
bool IsPersistent () const
 
bool IsChanged () const
 
virtual void Update ()
 
void SetAutoLoad (bool auto_load)
 
void SetPersistent (bool persistent)
 
void SetLocation (vec3 loc)
 
void SetRotation (quat rot)
 
void UpdateTransform (const vec3 &loc, const quat &rot)
 
const vec3GetLocation ()
 
const quatGetRotation ()
 
virtual void EventHandler (Event &event)
 
void CheckTransition ()
 
SignalTableGetSignalTable ()
 

Public Attributes

Component< ControllerComponentcontrollercomponent
 

Protected Attributes

Component< PlayerComponentplomp
 
- Protected Attributes inherited from tram::Entity
id_t id = 0
 
name_t name
 
uint32_t flags = 0
 
bool is_persistent = true
 
bool is_loaded = false
 
bool auto_load = true
 
bool in_interior = false
 
bool changed = false
 
bool is_serializable = true
 
WorldCellcell = nullptr
 
SignalTablesignals = nullptr
 
quat rotation = {1.0f, 0.0f, 0.0f, 0.0f}
 
vec3 location = {0.0f, 0.0f, 0.0f}
 

Additional Inherited Members

- Public Types inherited from tram::Entity
enum  : uint32_t { FIELD_SERIALIZE = 1 }
 
- Static Public Member Functions inherited from tram::Entity
static void RegisterType (name_t name, Entity *(*constr_func)(const SharedEntityData &, const ValueArray &), void(*destr_func)(Entity *), const uint32_t *fields, size_t fieldcount)
 
static void RegisterType (name_t name, Entity *(*constr_func)(const SharedEntityData &, const ValueArray &), void(*destr_func)(Entity *), std::initializer_list< FieldInfo > fields)
 
static void UpdateFromList ()
 Updates all of the entities in the update list. More...
 
static EntityMake (name_t type, File *file)
 Loads an Entity from a File. More...
 
static EntityFind (id_t entity_id)
 
static EntityFind (name_t entity_name)
 
- Protected Member Functions inherited from tram::Entity
void Register ()
 
void FireSignal (signal_t type)
 
void FireSignal (signal_t type, Value value)
 
void AddUpdate ()
 Adds entity to update list. More...
 
void RemoveUpdate ()
 Remove entity from the update list. More...
 

Constructor & Destructor Documentation

◆ Player()

tram::Player::Player ( )

◆ ~Player()

tram::Player::~Player ( )
inline

Member Function Documentation

◆ GetType()

name_t tram::Player::GetType ( )
virtual

Implements tram::Entity.

◆ Load()

void tram::Player::Load ( )
virtual

Implements tram::Entity.

◆ MessageHandler()

void tram::Player::MessageHandler ( Message msg)
virtual

Implements tram::Entity.

◆ Serialize()

void tram::Player::Serialize ( )
virtual

Implements tram::Entity.

◆ SerializeString()

void tram::Player::SerializeString ( std::string &  str)

◆ SetParameters()

void tram::Player::SetParameters ( )
virtual

Implements tram::Entity.

◆ Unload()

void tram::Player::Unload ( )
virtual

Implements tram::Entity.

◆ UpdateParameters()

void tram::Player::UpdateParameters ( )
virtual

Implements tram::Entity.

Member Data Documentation

◆ controllercomponent

Component<ControllerComponent> tram::Player::controllercomponent

◆ plomp

Component<PlayerComponent> tram::Player::plomp
protected

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