12 #ifndef NETWORK_BASE_H 13 #define NETWORK_BASE_H 19 #include "../core/pool_type.hpp" 20 #include "../company_type.h" 49 #define FOR_ALL_CLIENT_INFOS_FROM(var, start) FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start) 55 #define FOR_ALL_CLIENT_INFOS(var) FOR_ALL_CLIENT_INFOS_FROM(var, 0) static const uint NETWORK_CLIENT_NAME_LENGTH
The maximum length of a client's name, in bytes including '\0'.
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.
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.
Client is not part of anything.
ClientID
'Unique' identifier to be given to clients
NetworkClientInfo(ClientID client_id=INVALID_CLIENT_ID)
Create a new client.
int32 Date
The type to store our dates in.
Owner
Enum for all companies/owners.
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.