12 #ifndef NETWORK_BASE_H 13 #define NETWORK_BASE_H 17 #include "../core/pool_type.hpp" 18 #include "../company_type.h" 47 #define FOR_ALL_CLIENT_INFOS_FROM(var, start) FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start) 53 #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'.
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.