GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
radix::Player Class Reference

#include <external/RadixEngine/include/radix/component/Player.hpp>

Inherits radix::Component.

Public Member Functions

 Player (Entity &)
 
 ~Player ()
 
const char * getName () const
 
TypeId getTypeId () const
 
void serialize (serine::Archiver &)
 
template<typename T >
T & addTask ()
 
void removeTask (int id)
 
Quaternion getBaseHeadOrientation () const
 
Quaternion getHeadOrientation () const
 
- Public Member Functions inherited from radix::Component
 Component (Entity &ent) noexcept
 
virtual ~Component ()
 

Data Fields

std::map< int, PlayerTask * > tasks
 
std::shared_ptr< btConvexShape > shape
 
btPairCachingGhostObject * obj
 
KinematicCharacterControllercontroller
 
Triggertrigger
 
Vector3f velocity
 
Vector3f headAngle
 
bool flying
 
bool noclip
 
bool frozen
 
float speed
 
float stepCounter
 

Additional Inherited Members

- Public Types inherited from radix::Component
using TypeId = ComponentTypeId
 
- Static Public Member Functions inherited from radix::Component
template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 
- Static Public Attributes inherited from radix::Component
static constexpr TypeId MaxId = 32
 
- Protected Attributes inherited from radix::Component
Entityentity
 

Constructor & Destructor Documentation

radix::Player::Player ( Entity ent)
Todo:
Move this to systems and add a dependency model
radix::Player::~Player ( )

Member Function Documentation

template<typename T >
T& radix::Player::addTask ( )
inline
Quaternion radix::Player::getBaseHeadOrientation ( ) const
Quaternion radix::Player::getHeadOrientation ( ) const
const char* radix::Player::getName ( ) const
inlinevirtual

Implements radix::Component.

TypeId radix::Player::getTypeId ( ) const
inlinevirtual

Implements radix::Component.

void radix::Player::removeTask ( int  id)
void radix::Player::serialize ( serine::Archiver &  ar)

Field Documentation

KinematicCharacterController* radix::Player::controller
bool radix::Player::flying
bool radix::Player::frozen
Vector3f radix::Player::headAngle
bool radix::Player::noclip
btPairCachingGhostObject* radix::Player::obj
std::shared_ptr<btConvexShape> radix::Player::shape
float radix::Player::speed
float radix::Player::stepCounter
std::map<int, PlayerTask*> radix::Player::tasks
Trigger* radix::Player::trigger
Vector3f radix::Player::velocity

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