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/>.
10 /** @file network.h Basic functions/variables used all over the place. */
18 void NetworkStartUp();
19 void NetworkShutDown();
20 void NetworkDrawChatMessage();
23 extern bool _networking
; ///< are we in networking mode?
24 extern bool _network_server
; ///< network-server is active
25 extern bool _network_available
; ///< is network mode available?
26 extern bool _network_dedicated
; ///< are we a dedicated server?
27 extern bool _is_network_server
; ///< Does this client wants to be a network-server?
29 #else /* ENABLE_NETWORK */
30 /* Network function stubs when networking is disabled */
32 static inline void NetworkStartUp() {}
33 static inline void NetworkShutDown() {}
34 static inline void NetworkDrawChatMessage() {}
35 static inline bool HasClients() { return false; }
38 #define _network_server 0
39 #define _network_available 0
40 #define _network_dedicated 0
41 #define _is_network_server 0
43 #endif /* ENABLE_NETWORK */
44 #endif /* NETWORK_H */