network_gui.h

Go to the documentation of this file.
00001 /* $Id: network_gui.h 14712 2008-12-22 18:40:57Z rubidium $ */
00002 
00005 #ifndef NETWORK_GUI_H
00006 #define NETWORK_GUI_H
00007 
00008 #ifdef ENABLE_NETWORK
00009 
00010 #include "../window_type.h"
00011 #include "network_type.h"
00012 
00013 void ShowNetworkNeedPassword(NetworkPasswordType npt);
00014 void ShowNetworkGiveMoneyWindow(CompanyID company);
00015 void ShowNetworkChatQueryWindow(DestType type, int dest);
00016 void ShowJoinStatusWindow();
00017 void ShowNetworkGameWindow();
00018 void ShowClientList();
00019 void ShowNetworkCompanyPasswordWindow(Window *parent);
00020 
00021 
00023 struct NetworkCompanyInfo : NetworkCompanyStats {
00024   char company_name[NETWORK_COMPANY_NAME_LENGTH]; 
00025   Year inaugurated_year;                          
00026   Money company_value;                            
00027   Money money;                                    
00028   Money income;                                   
00029   uint16 performance;                             
00030   bool use_password;                              
00031   char clients[NETWORK_CLIENTS_LENGTH];           
00032 };
00033 
00034 NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
00035 
00036 #else /* ENABLE_NETWORK */
00037 /* Network function stubs when networking is disabled */
00038 
00039 static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
00040 static inline void ShowClientList() {}
00041 static inline void ShowNetworkGameWindow() {}
00042 static inline void ShowNetworkCompanyPasswordWindow(Window *parent) {}
00043 
00044 #endif /* ENABLE_NETWORK */
00045 
00046 #endif /* NETWORK_GUI_H */

Generated on Mon Mar 9 23:33:48 2009 for openttd by  doxygen 1.5.6