# network.h

    00001 /* $Id: network.h 11840 2008-01-13 21:51:53Z rubidium $ */
    00002
    00003 #ifndef NETWORK_H
    00004 #define NETWORK_H
    00005
    00006 #include "../player_type.h"
    00007
    00008 #ifdef ENABLE_NETWORK
    00009
    00010 void NetworkStartUp();
    00011 void NetworkShutDown();
    00012
    00013 extern bool _networking;
    00014 extern bool _network_server;
    00015 extern bool _network_available;
    00016 extern bool _network_dedicated;
    00017 extern bool _network_advertise;
    00018 extern bool _network_reload_cfg;
    00019
    00020 #else /* ENABLE_NETWORK */
    00021 /* Network function stubs when networking is disabled */
    00022
    00023 static inline void NetworkStartUp() {}
    00024 static inline void NetworkShutDown() {}
    00025
    00026 #define _networking 0
    00027 #define _network_server 0
    00028 #define _network_available 0
    00029 #define _network_dedicated 0
    00030 #define _network_advertise 0
    00031
    00032 #endif /* ENABLE_NETWORK */
    00033
    00035 extern const char _openttd_revision[];
    00036
    00038 extern PlayerID _network_playas;
    00039
    00040 #endif /* NETWORK_H */