DDraceNetwork Docs
CGameClient::CCursorInfo Class Reference

#include <gameclient.h>

Collaboration diagram for CGameClient::CCursorInfo:
[legend]

Public Member Functions

bool IsAvailable () const
 
int Weapon () const
 
vec2 Target () const
 
vec2 WorldTarget () const
 
vec2 Position () const
 

Private Attributes

int m_CursorOwnerId
 
double m_aTargetSamplesTime [CURSOR_SAMPLES]
 
vec2 m_aTargetSamplesData [CURSOR_SAMPLES]
 
int m_NumSamples
 
bool m_Available
 
int m_Weapon
 
vec2 m_Target
 
vec2 m_WorldTarget
 
vec2 m_Position
 

Static Private Attributes

static constexpr int CURSOR_SAMPLES = 8
 
static constexpr int SAMPLE_FRAME_WINDOW = 3
 
static constexpr int SAMPLE_FRAME_OFFSET = 2
 
static constexpr double INTERP_DELAY = 4.25
 
static constexpr double REST_THRESHOLD = 3.0
 

Friends

class CGameClient
 

Member Function Documentation

◆ IsAvailable()

bool CGameClient::CCursorInfo::IsAvailable ( ) const
inline

◆ Position()

vec2 CGameClient::CCursorInfo::Position ( ) const
inline

◆ Target()

vec2 CGameClient::CCursorInfo::Target ( ) const
inline

◆ Weapon()

int CGameClient::CCursorInfo::Weapon ( ) const
inline

◆ WorldTarget()

vec2 CGameClient::CCursorInfo::WorldTarget ( ) const
inline

Friends And Related Function Documentation

◆ CGameClient

friend class CGameClient
friend

Member Data Documentation

◆ CURSOR_SAMPLES

constexpr int CGameClient::CCursorInfo::CURSOR_SAMPLES = 8
staticconstexprprivate

◆ INTERP_DELAY

constexpr double CGameClient::CCursorInfo::INTERP_DELAY = 4.25
staticconstexprprivate

◆ m_aTargetSamplesData

vec2 CGameClient::CCursorInfo::m_aTargetSamplesData[CURSOR_SAMPLES]
private

◆ m_aTargetSamplesTime

double CGameClient::CCursorInfo::m_aTargetSamplesTime[CURSOR_SAMPLES]
private

◆ m_Available

bool CGameClient::CCursorInfo::m_Available
private

◆ m_CursorOwnerId

int CGameClient::CCursorInfo::m_CursorOwnerId
private

◆ m_NumSamples

int CGameClient::CCursorInfo::m_NumSamples
private

◆ m_Position

vec2 CGameClient::CCursorInfo::m_Position
private

◆ m_Target

vec2 CGameClient::CCursorInfo::m_Target
private

◆ m_Weapon

int CGameClient::CCursorInfo::m_Weapon
private

◆ m_WorldTarget

vec2 CGameClient::CCursorInfo::m_WorldTarget
private

◆ REST_THRESHOLD

constexpr double CGameClient::CCursorInfo::REST_THRESHOLD = 3.0
staticconstexprprivate

◆ SAMPLE_FRAME_OFFSET

constexpr int CGameClient::CCursorInfo::SAMPLE_FRAME_OFFSET = 2
staticconstexprprivate

◆ SAMPLE_FRAME_WINDOW

constexpr int CGameClient::CCursorInfo::SAMPLE_FRAME_WINDOW = 3
staticconstexprprivate

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