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

#include <PlayerControllerComponent.h>

+ Inheritance diagram for mnd::PlayerControllerComponent:
+ Collaboration diagram for mnd::PlayerControllerComponent:

Public Member Functions

void Init () override
 
void Update (f32 deltaTime) override
 
bool OnGround () const
 
void SetMoveSpeed (f32 speed)
 
f32 GetMoveSpeed () const
 
f32 GetSensitivity () const
 
f32 GetJumpSpeed () const
 
void SetSensitivity (f32 s)
 
void SetJumpSpeed (f32 s)
 
f32 GetGroundAccel () const
 
f32 GetAirAccel () const
 
f32 GetFriction () const
 
f32 GetAirCap () const
 
bool GetAutoHop () const
 
void SetGroundAccel (f32 v)
 
void SetAirAccel (f32 v)
 
void SetFriction (f32 v)
 
void SetAirCap (f32 v)
 
void SetAutoHop (bool v)
 
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 29 of file PlayerControllerComponent.h.

Member Function Documentation

◆ GetAirAccel()

f32 mnd::PlayerControllerComponent::GetAirAccel ( ) const
inline

Definition at line 49 of file PlayerControllerComponent.h.

◆ GetAirCap()

f32 mnd::PlayerControllerComponent::GetAirCap ( ) const
inline

Definition at line 51 of file PlayerControllerComponent.h.

◆ GetAutoHop()

bool mnd::PlayerControllerComponent::GetAutoHop ( ) const
inline

Definition at line 52 of file PlayerControllerComponent.h.

◆ GetFriction()

f32 mnd::PlayerControllerComponent::GetFriction ( ) const
inline

Definition at line 50 of file PlayerControllerComponent.h.

◆ GetGroundAccel()

f32 mnd::PlayerControllerComponent::GetGroundAccel ( ) const
inline

Definition at line 48 of file PlayerControllerComponent.h.

◆ GetJumpSpeed()

f32 mnd::PlayerControllerComponent::GetJumpSpeed ( ) const
inline

Definition at line 42 of file PlayerControllerComponent.h.

Referenced by mnd::InspectPlayer().

◆ GetMoveSpeed()

f32 mnd::PlayerControllerComponent::GetMoveSpeed ( ) const

Definition at line 171 of file PlayerControllerComponent.cpp.

Referenced by mnd::InspectPlayer().

◆ GetOwner()

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

◆ GetSensitivity()

f32 mnd::PlayerControllerComponent::GetSensitivity ( ) const
inline

Definition at line 41 of file PlayerControllerComponent.h.

Referenced by mnd::InspectPlayer().

◆ GetTypeId()

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

◆ Init()

void mnd::PlayerControllerComponent::Init ( )
overridevirtual

◆ LoadProperties()

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

◆ OnGround()

bool mnd::PlayerControllerComponent::OnGround ( ) const

Definition at line 157 of file PlayerControllerComponent.cpp.

Referenced by mnd::InspectPlayer().

◆ SetAirAccel()

void mnd::PlayerControllerComponent::SetAirAccel ( f32  v)
inline

Definition at line 55 of file PlayerControllerComponent.h.

◆ SetAirCap()

void mnd::PlayerControllerComponent::SetAirCap ( f32  v)
inline

Definition at line 57 of file PlayerControllerComponent.h.

◆ SetAutoHop()

void mnd::PlayerControllerComponent::SetAutoHop ( bool  v)
inline

Definition at line 58 of file PlayerControllerComponent.h.

◆ SetFriction()

void mnd::PlayerControllerComponent::SetFriction ( f32  v)
inline

Definition at line 56 of file PlayerControllerComponent.h.

◆ SetGroundAccel()

void mnd::PlayerControllerComponent::SetGroundAccel ( f32  v)
inline

Definition at line 54 of file PlayerControllerComponent.h.

◆ SetJumpSpeed()

void mnd::PlayerControllerComponent::SetJumpSpeed ( f32  s)
inline

Definition at line 45 of file PlayerControllerComponent.h.

Referenced by mnd::InspectPlayer().

◆ SetMoveSpeed()

void mnd::PlayerControllerComponent::SetMoveSpeed ( f32  speed)

Definition at line 166 of file PlayerControllerComponent.cpp.

Referenced by mnd::InspectPlayer().

◆ SetSensitivity()

void mnd::PlayerControllerComponent::SetSensitivity ( f32  s)
inline

Definition at line 44 of file PlayerControllerComponent.h.

Referenced by mnd::InspectPlayer().

◆ StaticTypeId()

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

Definition at line 50 of file Component.h.

◆ Update()

Member Data Documentation

◆ m_owner


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