DDraceNetwork Docs
CEventHandler Class Reference

#include <eventhandler.h>

Collaboration diagram for CEventHandler:
[legend]

Public Member Functions

CGameContextGameServer () const
 
void SetGameServer (CGameContext *pGameServer)
 
 CEventHandler ()
 
void * Create (int Type, int Size, CClientMask Mask=CClientMask().set())
 
template<typename T >
T * Create (CClientMask Mask=CClientMask().set())
 
void Clear ()
 
void Snap (int SnappingClient)
 
void EventToSixup (int *pType, int *pSize, const char **ppData)
 

Private Types

enum  { MAX_EVENTS = 128 , MAX_DATASIZE = 128 * 64 }
 

Private Attributes

int m_aTypes [MAX_EVENTS]
 
int m_aOffsets [MAX_EVENTS]
 
int m_aSizes [MAX_EVENTS]
 
CClientMask m_aClientMasks [MAX_EVENTS]
 
char m_aData [MAX_DATASIZE]
 
class CGameContextm_pGameServer
 
int m_CurrentOffset
 
int m_NumEvents
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_EVENTS 
MAX_DATASIZE 

Constructor & Destructor Documentation

◆ CEventHandler()

CEventHandler::CEventHandler ( )

Member Function Documentation

◆ Clear()

void CEventHandler::Clear ( )

◆ Create() [1/2]

template<typename T >
T * CEventHandler::Create ( CClientMask  Mask = CClientMask().set())
inline

◆ Create() [2/2]

void * CEventHandler::Create ( int  Type,
int  Size,
CClientMask  Mask = CClientMask().set() 
)

◆ EventToSixup()

void CEventHandler::EventToSixup ( int *  pType,
int *  pSize,
const char **  ppData 
)

◆ GameServer()

CGameContext * CEventHandler::GameServer ( ) const
inline

◆ SetGameServer()

void CEventHandler::SetGameServer ( CGameContext pGameServer)

◆ Snap()

void CEventHandler::Snap ( int  SnappingClient)

Member Data Documentation

◆ m_aClientMasks

CClientMask CEventHandler::m_aClientMasks[MAX_EVENTS]
private

◆ m_aData

char CEventHandler::m_aData[MAX_DATASIZE]
private

◆ m_aOffsets

int CEventHandler::m_aOffsets[MAX_EVENTS]
private

◆ m_aSizes

int CEventHandler::m_aSizes[MAX_EVENTS]
private

◆ m_aTypes

int CEventHandler::m_aTypes[MAX_EVENTS]
private

◆ m_CurrentOffset

int CEventHandler::m_CurrentOffset
private

◆ m_NumEvents

int CEventHandler::m_NumEvents
private

◆ m_pGameServer

class CGameContext* CEventHandler::m_pGameServer
private

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