10 #ifndef NETWORK_BASE_H 11 #define NETWORK_BASE_H 15 #include "../core/pool_type.hpp" 16 #include "../company_type.h" static const uint NETWORK_CLIENT_NAME_LENGTH
The maximum length of a client's name, in bytes including '\0'.
Owner
Enum for all companies/owners.
Container for all information known about a client.
~NetworkClientInfo()
Basically a client is leaving us right now.
ClientID client_id
Client identifier (same as ClientState->client_id)
Pool< NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS, PT_NCLIENT > NetworkClientInfoPool
Type for the pool with client information.
ClientID
'Unique' identifier to be given to clients
CompanyID client_playas
As which company is this client playing (CompanyID)
char client_name[NETWORK_CLIENT_NAME_LENGTH]
Name of the client.
Wrapper for network addresses.
Base class for all PoolItems.
Date join_date
Gamedate the client has joined.
Base class for all pools.
Types used for networking.
NetworkClientInfo(ClientID client_id=INVALID_CLIENT_ID)
Create a new client.
Client is not part of anything.
int32 Date
The type to store our dates in.
static NetworkClientInfo * GetByClientID(ClientID client_id)
Return the CI given it's client-identifier.
byte client_lang
The language of the client.
NetworkClientInfoPool _networkclientinfo_pool
The pool with client information.