DDraceNetwork Docs
CCharacterCore Class Reference

#include <gamecore.h>

Collaboration diagram for CCharacterCore:
[legend]

Classes

struct  WeaponStat
 

Public Member Functions

int HookedPlayer () const
 
void SetHookedPlayer (int HookedPlayer)
 
void Init (CWorldCore *pWorld, CCollision *pCollision, CTeamsCore *pTeams=nullptr)
 
void SetCoreWorld (CWorldCore *pWorld, CCollision *pCollision, CTeamsCore *pTeams)
 
void Reset ()
 
void TickDeferred ()
 
void Tick (bool UseInput, bool DoDeferredTick=true)
 
void Move ()
 
void Read (const CNetObj_CharacterCore *pObjCore)
 
void Write (CNetObj_CharacterCore *pObjCore) const
 
void Quantize ()
 
CCollisionCollision ()
 
void SetTeamsCore (CTeamsCore *pTeams)
 
void ReadDDNet (const CNetObj_DDNetCharacter *pObjDDNet)
 

Static Public Member Functions

static constexpr float PhysicalSize ()
 
static constexpr vec2 PhysicalSizeVec2 ()
 

Public Attributes

vec2 m_Pos
 
vec2 m_Vel
 
vec2 m_HookPos
 
vec2 m_HookDir
 
vec2 m_HookTeleBase
 
int m_HookTick
 
int m_HookState
 
std::set< int > m_AttachedPlayers
 
int m_ActiveWeapon
 
struct CCharacterCore::WeaponStat m_aWeapons [NUM_WEAPONS]
 
struct {
   vec2   m_ActivationDir
 
   int   m_ActivationTick
 
   int   m_CurrentMoveTime
 
   int   m_OldVelAmount
 
m_Ninja
 
bool m_NewHook
 
int m_Jumped
 
int m_JumpedTotal
 
int m_Jumps
 
int m_Direction
 
int m_Angle
 
CNetObj_PlayerInput m_Input
 
int m_TriggeredEvents
 
int m_Id
 
bool m_Reset
 
int m_Colliding
 
bool m_LeftWall
 
bool m_Solo
 
bool m_Jetpack
 
bool m_CollisionDisabled
 
bool m_EndlessHook
 
bool m_EndlessJump
 
bool m_HammerHitDisabled
 
bool m_GrenadeHitDisabled
 
bool m_LaserHitDisabled
 
bool m_ShotgunHitDisabled
 
bool m_HookHitDisabled
 
bool m_Super
 
bool m_Invincible
 
bool m_HasTelegunGun
 
bool m_HasTelegunGrenade
 
bool m_HasTelegunLaser
 
int m_FreezeStart
 
int m_FreezeEnd
 
bool m_IsInFreeze
 
bool m_DeepFrozen
 
bool m_LiveFrozen
 
CTuningParams m_Tuning
 

Static Private Member Functions

static bool IsSwitchActiveCb (int Number, void *pUser)
 

Private Attributes

CWorldCorem_pWorld = nullptr
 
CCollisionm_pCollision
 
CTeamsCorem_pTeams
 
int m_MoveRestrictions
 
int m_HookedPlayer
 

Member Function Documentation

◆ Collision()

CCollision * CCharacterCore::Collision ( )
inline

◆ HookedPlayer()

int CCharacterCore::HookedPlayer ( ) const
inline

◆ Init()

void CCharacterCore::Init ( CWorldCore pWorld,
CCollision pCollision,
CTeamsCore pTeams = nullptr 
)

◆ IsSwitchActiveCb()

bool CCharacterCore::IsSwitchActiveCb ( int  Number,
void *  pUser 
)
staticprivate

◆ Move()

void CCharacterCore::Move ( )

◆ PhysicalSize()

static constexpr float CCharacterCore::PhysicalSize ( )
inlinestaticconstexpr

◆ PhysicalSizeVec2()

static constexpr vec2 CCharacterCore::PhysicalSizeVec2 ( )
inlinestaticconstexpr

◆ Quantize()

void CCharacterCore::Quantize ( )

◆ Read()

void CCharacterCore::Read ( const CNetObj_CharacterCore pObjCore)

◆ ReadDDNet()

void CCharacterCore::ReadDDNet ( const CNetObj_DDNetCharacter pObjDDNet)

◆ Reset()

void CCharacterCore::Reset ( )

◆ SetCoreWorld()

void CCharacterCore::SetCoreWorld ( CWorldCore pWorld,
CCollision pCollision,
CTeamsCore pTeams 
)

◆ SetHookedPlayer()

void CCharacterCore::SetHookedPlayer ( int  HookedPlayer)

◆ SetTeamsCore()

void CCharacterCore::SetTeamsCore ( CTeamsCore pTeams)

◆ Tick()

void CCharacterCore::Tick ( bool  UseInput,
bool  DoDeferredTick = true 
)

◆ TickDeferred()

void CCharacterCore::TickDeferred ( )

◆ Write()

void CCharacterCore::Write ( CNetObj_CharacterCore pObjCore) const

Member Data Documentation

◆ m_ActivationDir

vec2 CCharacterCore::m_ActivationDir

◆ m_ActivationTick

int CCharacterCore::m_ActivationTick

◆ m_ActiveWeapon

int CCharacterCore::m_ActiveWeapon

◆ m_Angle

int CCharacterCore::m_Angle

◆ m_AttachedPlayers

std::set<int> CCharacterCore::m_AttachedPlayers

◆ m_aWeapons

struct CCharacterCore::WeaponStat CCharacterCore::m_aWeapons[NUM_WEAPONS]

◆ m_Colliding

int CCharacterCore::m_Colliding

◆ m_CollisionDisabled

bool CCharacterCore::m_CollisionDisabled

◆ m_CurrentMoveTime

int CCharacterCore::m_CurrentMoveTime

◆ m_DeepFrozen

bool CCharacterCore::m_DeepFrozen

◆ m_Direction

int CCharacterCore::m_Direction

◆ m_EndlessHook

bool CCharacterCore::m_EndlessHook

◆ m_EndlessJump

bool CCharacterCore::m_EndlessJump

◆ m_FreezeEnd

int CCharacterCore::m_FreezeEnd

◆ m_FreezeStart

int CCharacterCore::m_FreezeStart

◆ m_GrenadeHitDisabled

bool CCharacterCore::m_GrenadeHitDisabled

◆ m_HammerHitDisabled

bool CCharacterCore::m_HammerHitDisabled

◆ m_HasTelegunGrenade

bool CCharacterCore::m_HasTelegunGrenade

◆ m_HasTelegunGun

bool CCharacterCore::m_HasTelegunGun

◆ m_HasTelegunLaser

bool CCharacterCore::m_HasTelegunLaser

◆ m_HookDir

vec2 CCharacterCore::m_HookDir

◆ m_HookedPlayer

int CCharacterCore::m_HookedPlayer
private

◆ m_HookHitDisabled

bool CCharacterCore::m_HookHitDisabled

◆ m_HookPos

vec2 CCharacterCore::m_HookPos

◆ m_HookState

int CCharacterCore::m_HookState

◆ m_HookTeleBase

vec2 CCharacterCore::m_HookTeleBase

◆ m_HookTick

int CCharacterCore::m_HookTick

◆ m_Id

int CCharacterCore::m_Id

◆ m_Input

CNetObj_PlayerInput CCharacterCore::m_Input

◆ m_Invincible

bool CCharacterCore::m_Invincible

◆ m_IsInFreeze

bool CCharacterCore::m_IsInFreeze

◆ m_Jetpack

bool CCharacterCore::m_Jetpack

◆ m_Jumped

int CCharacterCore::m_Jumped

◆ m_JumpedTotal

int CCharacterCore::m_JumpedTotal

◆ m_Jumps

int CCharacterCore::m_Jumps

◆ m_LaserHitDisabled

bool CCharacterCore::m_LaserHitDisabled

◆ m_LeftWall

bool CCharacterCore::m_LeftWall

◆ m_LiveFrozen

bool CCharacterCore::m_LiveFrozen

◆ m_MoveRestrictions

int CCharacterCore::m_MoveRestrictions
private

◆ m_NewHook

bool CCharacterCore::m_NewHook

◆ 

struct { ... } CCharacterCore::m_Ninja

◆ m_OldVelAmount

int CCharacterCore::m_OldVelAmount

◆ m_pCollision

CCollision* CCharacterCore::m_pCollision
private

◆ m_Pos

vec2 CCharacterCore::m_Pos

◆ m_pTeams

CTeamsCore* CCharacterCore::m_pTeams
private

◆ m_pWorld

CWorldCore* CCharacterCore::m_pWorld = nullptr
private

◆ m_Reset

bool CCharacterCore::m_Reset

◆ m_ShotgunHitDisabled

bool CCharacterCore::m_ShotgunHitDisabled

◆ m_Solo

bool CCharacterCore::m_Solo

◆ m_Super

bool CCharacterCore::m_Super

◆ m_TriggeredEvents

int CCharacterCore::m_TriggeredEvents

◆ m_Tuning

CTuningParams CCharacterCore::m_Tuning

◆ m_Vel

vec2 CCharacterCore::m_Vel

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