Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
eng::PlayerControllerComponent Class Referenceabstract

#include <PlayerControllerComponent.h>

+ Inheritance diagram for eng::PlayerControllerComponent:
+ Collaboration diagram for eng::PlayerControllerComponent:

Public Member Functions

void Init () override
 
void Update (float deltaTime) override
 
bool OnGround () const
 
virtual void LoadProperties (const nlohmann::json &json)
 
virtual size_t GetTypeId () const =0
 
GameObjectGetOwner ()
 

Static Public Member Functions

template<typename T >
static size_t StaticTypeId ()
 

Protected Attributes

GameObjectm_owner = nullptr
 

Detailed Description

Definition at line 9 of file PlayerControllerComponent.h.

Member Function Documentation

◆ GetOwner()

GameObject * eng::Component::GetOwner ( )
inherited

Definition at line 15 of file Component.cpp.

References eng::Component::m_owner.

Referenced by eng::MeshComponent::Update(), and eng::SpriteComponent::Update().

◆ GetTypeId()

virtual size_t eng::Component::GetTypeId ( ) const
pure virtualinherited

◆ Init()

void eng::PlayerControllerComponent::Init ( )
overridevirtual

Reimplemented from eng::Component.

Definition at line 10 of file PlayerControllerComponent.cpp.

References eng::GameObject::GetWorldPosition(), and eng::Component::m_owner.

◆ LoadProperties()

void eng::Component::LoadProperties ( const nlohmann::json &  json)
virtualinherited

◆ OnGround()

bool eng::PlayerControllerComponent::OnGround ( ) const

Definition at line 81 of file PlayerControllerComponent.cpp.

Referenced by Player::Update().

◆ StaticTypeId()

template<typename T >
static size_t eng::Component::StaticTypeId ( )
inlinestaticinherited

Definition at line 26 of file Component.h.

◆ Update()

void eng::PlayerControllerComponent::Update ( float  deltaTime)
overridevirtual

Member Data Documentation

◆ m_owner


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