network_gui.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef NETWORK_GUI_H
00013 #define NETWORK_GUI_H
00014
00015 #include "../window_type.h"
00016 #include "network_type.h"
00017
00018 #ifdef ENABLE_NETWORK
00019
00020 void ShowNetworkNeedPassword(NetworkPasswordType npt);
00021 void ShowNetworkGiveMoneyWindow(CompanyID company);
00022 void ShowNetworkChatQueryWindow(DestType type, int dest);
00023 void ShowJoinStatusWindow();
00024 void ShowNetworkGameWindow();
00025 void ShowClientList();
00026 void ShowNetworkCompanyPasswordWindow(Window *parent);
00027
00028
00030 struct NetworkCompanyInfo : NetworkCompanyStats {
00031 char company_name[NETWORK_COMPANY_NAME_LENGTH];
00032 Year inaugurated_year;
00033 Money company_value;
00034 Money money;
00035 Money income;
00036 uint16 performance;
00037 bool use_password;
00038 char clients[NETWORK_CLIENTS_LENGTH];
00039 };
00040
00041 NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
00042
00043 #else
00044
00045
00046 static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
00047 static inline void ShowClientList() {}
00048 static inline void ShowNetworkGameWindow() {}
00049 static inline void ShowNetworkCompanyPasswordWindow(Window *parent) {}
00050
00051 #endif
00052
00053 #endif