Rasterization-DiscoBall
 All Classes Files Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PlayerEntity Class Reference

#include <PlayerEntity.h>

Inheritance diagram for PlayerEntity:

Public Member Functions

virtual void onPose (Array< shared_ptr< Surface > > &surfaceArray) override
 
virtual void onSimulation (GameTime absoluteTime, GameTime deltaTime) override
 
void setDesiredOSVelocity (const Vector3 &objectSpaceVelocity)
 
virtual Any toAny () const override
 Converts the current VisibleEntity to an Any. More...
 

Static Public Member Functions

static shared_ptr< Entity > create (const String &name, Scene *scene, AnyTableReader &propertyTable, const ModelTable &modelTable)
 For deserialization from Any / loading from file. More...
 
static shared_ptr< PlayerEntitycreate (const String &name, Scene *scene, const CFrame &position, const shared_ptr< Model > &model)
 For programmatic construction at runtime. More...
 

Protected Member Functions

void init (AnyTableReader &propertyTable)
 
void init (const Vector3 &velocity)
 
 PlayerEntity ()
 

Protected Attributes

Vector3 m_desiredOSVelocity
 
Vector3 m_maxOSAcceleration
 
Vector3 m_maxOSVelocity
 
Vector3 m_velocity
 In world space. More...
 

Constructor & Destructor Documentation

PlayerEntity::PlayerEntity ( )
inlineprotected

Member Function Documentation

shared_ptr< Entity > PlayerEntity::create ( const String &  name,
Scene *  scene,
AnyTableReader &  propertyTable,
const ModelTable &  modelTable 
)
static

For deserialization from Any / loading from file.

shared_ptr< PlayerEntity > PlayerEntity::create ( const String &  name,
Scene *  scene,
const CFrame &  position,
const shared_ptr< Model > &  model 
)
static

For programmatic construction at runtime.

void PlayerEntity::init ( AnyTableReader &  propertyTable)
protected
void PlayerEntity::init ( const Vector3 &  velocity)
protected
void PlayerEntity::onPose ( Array< shared_ptr< Surface > > &  surfaceArray)
overridevirtual
void PlayerEntity::onSimulation ( GameTime  absoluteTime,
GameTime  deltaTime 
)
overridevirtual
void PlayerEntity::setDesiredOSVelocity ( const Vector3 &  objectSpaceVelocity)
inline
Any PlayerEntity::toAny ( ) const
overridevirtual

Converts the current VisibleEntity to an Any.

Subclasses should modify at least the name of the Table returned by the base class, which will be "Entity" if not changed.

Member Data Documentation

Vector3 PlayerEntity::m_desiredOSVelocity
protected
Vector3 PlayerEntity::m_maxOSAcceleration
protected
Vector3 PlayerEntity::m_maxOSVelocity
protected
Vector3 PlayerEntity::m_velocity
protected

In world space.


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