network.h

Go to the documentation of this file.
00001 /* $Id: network.h 18809 2010-01-15 16:41:15Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * 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.
00006  * 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.
00007  * 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/>.
00008  */
00009 
00012 #ifndef NETWORK_H
00013 #define NETWORK_H
00014 
00015 
00016 #ifdef ENABLE_NETWORK
00017 
00018 void NetworkStartUp();
00019 void NetworkShutDown();
00020 void NetworkDrawChatMessage();
00021 
00022 extern bool _networking;         
00023 extern bool _network_server;     
00024 extern bool _network_available;  
00025 extern bool _network_dedicated;  
00026 extern bool _is_network_server;  
00027 
00028 #else /* ENABLE_NETWORK */
00029 /* Network function stubs when networking is disabled */
00030 
00031 static inline void NetworkStartUp() {}
00032 static inline void NetworkShutDown() {}
00033 static inline void NetworkDrawChatMessage() {}
00034 
00035 #define _networking 0
00036 #define _network_server 0
00037 #define _network_available 0
00038 #define _network_dedicated 0
00039 #define _is_network_server 0
00040 
00041 #endif /* ENABLE_NETWORK */
00042 #endif /* NETWORK_H */

Generated on Sun Nov 14 14:41:52 2010 for OpenTTD by  doxygen 1.6.1