OpenTTD
network.h
Go to the documentation of this file.
1 /* $Id$ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef NETWORK_H
13 #define NETWORK_H
14 
15 void NetworkStartUp();
16 void NetworkShutDown();
18 bool HasClients();
19 
20 extern bool _networking;
21 extern bool _network_server;
22 extern bool _network_available;
23 extern bool _network_dedicated;
24 extern bool _is_network_server;
25 
26 #endif /* NETWORK_H */
void NetworkStartUp()
This tries to launch the network for a given OS.
Definition: network.cpp:1068
bool _is_network_server
Does this client wants to be a network-server?
Definition: network.cpp:58
bool HasClients()
Return whether there is any client connected or trying to connect at all.
Definition: network.cpp:102
bool _network_server
network-server is active
Definition: network.cpp:55
void NetworkShutDown()
This shuts the network down.
Definition: network.cpp:1089
bool _networking
are we in networking mode?
Definition: network.cpp:54
void NetworkDrawChatMessage()
Draw the chat message-box.
bool _network_dedicated
are we a dedicated server?
Definition: network.cpp:57
bool _network_available
is network mode available?
Definition: network.cpp:56