Go to the documentation of this file.
10 #ifndef NETWORK_BASE_H
11 #define NETWORK_BASE_H
15 #include "../core/pool_type.hpp"
16 #include "../company_type.h"
17 #include "../date_type.h"
Pool< NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS, PT_NCLIENT > NetworkClientInfoPool
Type for the pool with client information.
@ INVALID_CLIENT_ID
Client is not part of anything.
CompanyID client_playas
As which company is this client playing (CompanyID)
NetworkClientInfoPool _networkclientinfo_pool
Make sure both pools have the same size.
char client_name[NETWORK_CLIENT_NAME_LENGTH]
Name of the client.
Date join_date
Gamedate the client has joined.
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.
~NetworkClientInfo()
Basically a client is leaving us right now.
static NetworkClientInfo * GetByClientID(ClientID client_id)
Return the CI given it's client-identifier.
byte client_lang
The language of the client.
ClientID
'Unique' identifier to be given to clients
int32 Date
The type to store our dates in.
NetworkClientInfo(ClientID client_id=INVALID_CLIENT_ID)
Create a new client.
ClientID client_id
Client identifier (same as ClientState->client_id)
Base class for all pools.
Base class for all PoolItems.
Container for all information known about a client.