DDraceNetwork Docs
CConsole::CResult Class Reference
Inheritance diagram for CConsole::CResult:
[legend]
Collaboration diagram for CConsole::CResult:
[legend]

Public Types

enum  { VICTIM_NONE = -3 , VICTIM_ME = -2 , VICTIM_ALL = -1 }
 

Public Member Functions

 CResult (int ClientId)
 
 CResult (const CResult &Other)
 
void AddArgument (const char *pArg)
 
const char * GetString (unsigned Index) const override
 
int GetInteger (unsigned Index) const override
 
float GetFloat (unsigned Index) const override
 
std::optional< ColorHSLAGetColor (unsigned Index, float DarkestLighting) const override
 
void RemoveArgument (unsigned Index) override
 
void ResetVictim ()
 
bool HasVictim () const
 
void SetVictim (int Victim)
 
void SetVictim (const char *pVictim)
 
int GetVictim () const override
 
- Public Member Functions inherited from IConsole::IResult
 IResult (int ClientId)
 
 IResult (const IResult &Other)
 
virtual ~IResult ()
 
virtual int GetInteger (unsigned Index) const =0
 
virtual float GetFloat (unsigned Index) const =0
 
virtual const char * GetString (unsigned Index) const =0
 
virtual std::optional< ColorHSLAGetColor (unsigned Index, float DarkestLighting) const =0
 
virtual void RemoveArgument (unsigned Index)=0
 
int NumArguments () const
 
virtual int GetVictim () const =0
 

Public Attributes

char m_aStringStorage [CONSOLE_MAX_STR_LENGTH+1]
 
char * m_pArgsStart
 
const char * m_pCommand
 
const char * m_apArgs [MAX_PARTS]
 
int m_Victim
 
- Public Attributes inherited from IConsole::IResult
int m_ClientId
 

Additional Inherited Members

- Protected Attributes inherited from IConsole::IResult
unsigned m_NumArgs
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VICTIM_NONE 
VICTIM_ME 
VICTIM_ALL 

Constructor & Destructor Documentation

◆ CResult() [1/2]

CConsole::CResult::CResult ( int  ClientId)
inline

◆ CResult() [2/2]

CConsole::CResult::CResult ( const CResult Other)
inline

Member Function Documentation

◆ AddArgument()

void CConsole::CResult::AddArgument ( const char *  pArg)
inline

◆ GetColor()

std::optional< ColorHSLA > CConsole::CResult::GetColor ( unsigned  Index,
float  DarkestLighting 
) const
overridevirtual

Implements IConsole::IResult.

◆ GetFloat()

float CConsole::CResult::GetFloat ( unsigned  Index) const
overridevirtual

Implements IConsole::IResult.

◆ GetInteger()

int CConsole::CResult::GetInteger ( unsigned  Index) const
overridevirtual

Implements IConsole::IResult.

◆ GetString()

const char * CConsole::CResult::GetString ( unsigned  Index) const
overridevirtual

Implements IConsole::IResult.

◆ GetVictim()

int CConsole::CResult::GetVictim ( ) const
overridevirtual

Implements IConsole::IResult.

◆ HasVictim()

bool CConsole::CResult::HasVictim ( ) const

◆ RemoveArgument()

void CConsole::CResult::RemoveArgument ( unsigned  Index)
inlineoverridevirtual

Implements IConsole::IResult.

◆ ResetVictim()

void CConsole::CResult::ResetVictim ( )

◆ SetVictim() [1/2]

void CConsole::CResult::SetVictim ( const char *  pVictim)

◆ SetVictim() [2/2]

void CConsole::CResult::SetVictim ( int  Victim)

Member Data Documentation

◆ m_apArgs

const char* CConsole::CResult::m_apArgs[MAX_PARTS]

◆ m_aStringStorage

char CConsole::CResult::m_aStringStorage[CONSOLE_MAX_STR_LENGTH+1]

◆ m_pArgsStart

char* CConsole::CResult::m_pArgsStart

◆ m_pCommand

const char* CConsole::CResult::m_pCommand

◆ m_Victim

int CConsole::CResult::m_Victim

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