Cafu Engine
ClientInfoT Struct Reference

Public Types

enum  ClientStateT { Online, Wait4MapInfoACK, Zombie }
 

Public Member Functions

 ClientInfoT (const NetAddressT &ClientAddress_, const std::string &PlayerName_, const std::string &ModelName_)
 
void InitForNewWorld (unsigned long ClientEntityID)
 

Public Attributes

NetAddressT ClientAddress
 IP+Port of the client. More...
 
GameProtocol1T GameProtocol
 The network protocol instance we use for communication with the client. More...
 
ArrayT< ArrayT< char > > ReliableDatas
 Puffer für wichtige, zu bestätigende Messages an den Client. More...
 
float TimeSinceLastMessage
 Time that passed since the last message arrived (for time-outs and zombies). More...
 
float TimeSinceLastUpdate
 
ClientStateT ClientState
 Online, Wait4MapInfoACK, Zombie, Download, ... More...
 
std::string PlayerName
 Player name (e.g. Thunderbird, Firefox, Mordred, ...). More...
 
std::string ModelName
 Model name (e.g. Trinity, T801, James, ...). More...
 
unsigned long EntityID
 ID of our HumanPlayer entity. More...
 
unsigned int LastPlayerCommandNr
 The number of the last player command that we have received from the client. More...
 
unsigned long LastKnownFrameReceived
 Für Delta-Kompression: Letztes Frame, von dem wir wissen, das der Cl es empf. hat. More...
 
unsigned long BaseLineFrameNr
 
ArrayT< ArrayT< unsigned long > > OldStatesPVSEntityIDs
 TODO: Replace type with ArrayT<FrameInfoT> ? More...
 

Member Data Documentation

NetAddressT ClientInfoT::ClientAddress

IP+Port of the client.

ClientStateT ClientInfoT::ClientState

Online, Wait4MapInfoACK, Zombie, Download, ...

unsigned long ClientInfoT::EntityID

ID of our HumanPlayer entity.

GameProtocol1T ClientInfoT::GameProtocol

The network protocol instance we use for communication with the client.

unsigned long ClientInfoT::LastKnownFrameReceived

Für Delta-Kompression: Letztes Frame, von dem wir wissen, das der Cl es empf. hat.

unsigned int ClientInfoT::LastPlayerCommandNr

The number of the last player command that we have received from the client.

std::string ClientInfoT::ModelName

Model name (e.g. Trinity, T801, James, ...).

ArrayT< ArrayT<unsigned long> > ClientInfoT::OldStatesPVSEntityIDs

TODO: Replace type with ArrayT<FrameInfoT> ?

std::string ClientInfoT::PlayerName

Player name (e.g. Thunderbird, Firefox, Mordred, ...).

ArrayT< ArrayT<char> > ClientInfoT::ReliableDatas

Puffer für wichtige, zu bestätigende Messages an den Client.

float ClientInfoT::TimeSinceLastMessage

Time that passed since the last message arrived (for time-outs and zombies).


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