DDraceNetwork Docs
protocol7::CNetObjHandler Class Reference

#include <protocol7.h>

Public Member Functions

 CNetObjHandler ()
 
int ValidateObj (int Type, const void *pData, int Size)
 
const char * GetObjName (int Type) const
 
int GetObjSize (int Type) const
 
const char * FailedObjOn () const
 
int NumObjFailures () const
 
const char * GetMsgName (int Type) const
 
void * SecureUnpackMsg (int Type, CUnpacker *pUnpacker)
 
const char * FailedMsgOn () const
 

Private Member Functions

bool CheckInt (const char *pErrorMsg, int Value, int Min, int Max)
 
bool CheckFlag (const char *pErrorMsg, int Value, int Mask)
 

Private Attributes

const char * m_pMsgFailedOn
 
char m_aMsgData [1024]
 
const char * m_pObjFailedOn
 
int m_NumObjFailures
 

Static Private Attributes

static const char * ms_apObjNames []
 
static int ms_aObjSizes []
 
static const char * ms_apMsgNames []
 

Constructor & Destructor Documentation

◆ CNetObjHandler()

CNetObjHandler::CNetObjHandler ( )

Member Function Documentation

◆ CheckFlag()

bool CNetObjHandler::CheckFlag ( const char *  pErrorMsg,
int  Value,
int  Mask 
)
private

◆ CheckInt()

bool CNetObjHandler::CheckInt ( const char *  pErrorMsg,
int  Value,
int  Min,
int  Max 
)
private

◆ FailedMsgOn()

const char * CNetObjHandler::FailedMsgOn ( ) const

◆ FailedObjOn()

const char * CNetObjHandler::FailedObjOn ( ) const

◆ GetMsgName()

const char * CNetObjHandler::GetMsgName ( int  Type) const

◆ GetObjName()

const char * CNetObjHandler::GetObjName ( int  Type) const

◆ GetObjSize()

int CNetObjHandler::GetObjSize ( int  Type) const

◆ NumObjFailures()

int CNetObjHandler::NumObjFailures ( ) const

◆ SecureUnpackMsg()

void * CNetObjHandler::SecureUnpackMsg ( int  Type,
CUnpacker pUnpacker 
)

◆ ValidateObj()

int CNetObjHandler::ValidateObj ( int  Type,
const void *  pData,
int  Size 
)

Member Data Documentation

◆ m_aMsgData

char protocol7::CNetObjHandler::m_aMsgData[1024]
private

◆ m_NumObjFailures

int protocol7::CNetObjHandler::m_NumObjFailures
private

◆ m_pMsgFailedOn

const char* protocol7::CNetObjHandler::m_pMsgFailedOn
private

◆ m_pObjFailedOn

const char* protocol7::CNetObjHandler::m_pObjFailedOn
private

◆ ms_aObjSizes

int CNetObjHandler::ms_aObjSizes
staticprivate
Initial value:
= {
0,
sizeof(CNetObj_Laser),
sizeof(CNetObj_Pickup),
sizeof(CNetObj_Flag),
sizeof(CNetObj_GameDataTeam),
sizeof(CNetObj_GameDataFlag),
sizeof(CNetObj_De_ClientInfo),
sizeof(CNetObj_De_GameInfo),
sizeof(CNetObj_De_TuneParams),
sizeof(CNetEvent_Spawn),
sizeof(CNetEvent_Death),
sizeof(CNetEvent_Damage),
sizeof(CNetObj_PlayerInfoRace),
sizeof(CNetObj_GameDataRace),
0
}
Definition: protocol.h:593
Definition: protocol.h:615
Definition: protocol.h:600
Definition: protocol.h:610
Definition: protocol.h:627
Definition: protocol.h:605
Definition: protocol.h:435
Definition: protocol.h:455
Definition: protocol.h:405
Definition: protocol.h:426
Definition: protocol.h:386
Definition: protocol.h:396
Definition: protocol.h:467
Definition: protocol.h:360
Definition: protocol.h:375
Definition: protocol.h:499

◆ ms_apMsgNames

const char * CNetObjHandler::ms_apMsgNames
staticprivate

◆ ms_apObjNames

const char * CNetObjHandler::ms_apObjNames
staticprivate
Initial value:
= {
"invalid",
"PlayerInput",
"Projectile",
"Laser",
"Pickup",
"Flag",
"GameData",
"GameDataTeam",
"GameDataFlag",
"CharacterCore",
"Character",
"PlayerInfo",
"SpectatorInfo",
"De_ClientInfo",
"De_GameInfo",
"De_TuneParams",
"Common",
"Explosion",
"Spawn",
"HammerHit",
"Death",
"SoundWorld",
"Damage",
"PlayerInfoRace",
"GameDataRace",
""
}

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