12 #ifndef NETWORK_TYPE_H 13 #define NETWORK_TYPE_H 33 NETWORK_VEH_TRAIN = 0,
92 NETWORK_ACTION_SERVER_MESSAGE,
94 NETWORK_ACTION_CHAT_COMPANY,
95 NETWORK_ACTION_CHAT_CLIENT,
96 NETWORK_ACTION_GIVE_MONEY,
97 NETWORK_ACTION_NAME_CHANGE,
98 NETWORK_ACTION_COMPANY_SPECTATOR,
99 NETWORK_ACTION_COMPANY_JOIN,
100 NETWORK_ACTION_COMPANY_NEW,
105 NETWORK_ERROR_GENERAL,
108 NETWORK_ERROR_DESYNC,
109 NETWORK_ERROR_SAVEGAME_FAILED,
110 NETWORK_ERROR_CONNECTION_LOST,
111 NETWORK_ERROR_ILLEGAL_PACKET,
112 NETWORK_ERROR_NEWGRF_MISMATCH,
115 NETWORK_ERROR_NOT_AUTHORIZED,
116 NETWORK_ERROR_NOT_EXPECTED,
117 NETWORK_ERROR_WRONG_REVISION,
118 NETWORK_ERROR_NAME_IN_USE,
119 NETWORK_ERROR_WRONG_PASSWORD,
120 NETWORK_ERROR_COMPANY_MISMATCH,
121 NETWORK_ERROR_KICKED,
122 NETWORK_ERROR_CHEATER,
124 NETWORK_ERROR_TOO_MANY_COMMANDS,
125 NETWORK_ERROR_TIMEOUT_PASSWORD,
126 NETWORK_ERROR_TIMEOUT_COMPUTER,
127 NETWORK_ERROR_TIMEOUT_MAP,
128 NETWORK_ERROR_TIMEOUT_JOIN,
Send message/notice to all clients (All)
Container for all information known about a client.
bool ai
Is this company an AI.
NetworkErrorCode
The error codes we send around in the protocols.
static const uint MAX_CLIENTS
How many clients can we have.
static const AdminIndex INVALID_ADMIN_ID
An invalid admin marker.
Send message/notice to only a certain client (Private)
Information about a game that is sent between a game server, game client and masterserver.
Servers always have this ID.
The password of the company.
uint16 months_empty
How many months the company is empty.
uint16 num_vehicle[NETWORK_VEH_END]
How many vehicles are there of this type?
static const AdminIndex MAX_ADMINS
Maximum number of allowed admins.
uint8 AdminIndex
Indices into the admin tables.
The password of the game.
NetworkVehicleType
Vehicletypes in the order they are send in info packets.
Client is not part of anything.
ClientID
'Unique' identifier to be given to clients
uint16 num_station[NETWORK_VEH_END]
How many stations are there of this type?
uint8 ClientIndex
Indices into the client tables.
static const uint MAX_CLIENT_SLOTS
The number of slots; must be at least 1 more than MAX_CLIENTS.
Simple calculated statistics of a company.
static const uint NETWORK_PASSWORD_LENGTH
The maximum length of the password, in bytes including '\0' (must be >= NETWORK_SERVER_ID_LENGTH) ...
Some state information of a company, especially for servers.
NetworkPasswordType
The type of password we're asking for.
Send message/notice to everyone playing the same company (Team)
DestType
Destination of our chat messages.
NetworkAction
Actions that can be used for NetworkTextMessage.