OpenTTD
|
Base core network types and some helper functions to access them. More...
#include "network_type.h"
#include "core/address.h"
#include "../core/pool_type.hpp"
#include "../company_type.h"
Go to the source code of this file.
Data Structures | |
struct | NetworkClientInfo |
Container for all information known about a client. More... |
Macros | |
#define | FOR_ALL_CLIENT_INFOS_FROM(var, start) FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start) |
Iterate over all the clients from a given index. | |
#define | FOR_ALL_CLIENT_INFOS(var) FOR_ALL_CLIENT_INFOS_FROM(var, 0) |
Iterate over all the clients. |
Typedefs | |
typedef Pool < NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS, PT_NCLIENT > | NetworkClientInfoPool |
Type for the pool with client information. |
Variables | |
NetworkClientInfoPool | _networkclientinfo_pool |
The pool with client information. |
Base core network types and some helper functions to access them.
Definition in file network_base.h.
#define FOR_ALL_CLIENT_INFOS | ( | var | ) | FOR_ALL_CLIENT_INFOS_FROM(var, 0) |
Iterate over all the clients.
var | The variable to iterate with. |
Definition at line 55 of file network_base.h.
Referenced by NetworkClientListWindow::CheckClientListHeight(), NetworkClientListWindow::DrawWidget(), NetworkClientInfo::GetByClientID(), NetworkAutoCleanCompanies(), NetworkClientPreferTeamChat(), NetworkClientsToSpectators(), NetworkCompanyHasClients(), NetworkFindName(), NetworkPrintClients(), NetworkServerChangeClientName(), NetworkClientListWindow::OnClick(), and NetworkClientListWindow::UpdateWidgetSize().
#define FOR_ALL_CLIENT_INFOS_FROM | ( | var, | |
start | |||
) | FOR_ALL_ITEMS_FROM(NetworkClientInfo, clientinfo_index, var, start) |
Iterate over all the clients from a given index.
var | The variable to iterate with. |
start | The location to start the iteration from. |
Definition at line 49 of file network_base.h.
Referenced by NetworkChatWindow::ChatTabCompletionNextItem().
typedef Pool<NetworkClientInfo, ClientIndex, 8, MAX_CLIENT_SLOTS, PT_NCLIENT> NetworkClientInfoPool |
Type for the pool with client information.
Definition at line 23 of file network_base.h.
NetworkClientInfoPool _networkclientinfo_pool |
The pool with client information.