2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file network_gui.h GUIs related to networking. */
13 #include "../company_type.h"
14 #include "../economy_type.h"
15 #include "../window_type.h"
16 #include "network_type.h"
18 void ShowNetworkNeedPassword(NetworkPasswordType npt
);
19 void ShowNetworkChatQueryWindow(DestType type
, int dest
);
20 void ShowJoinStatusWindow();
21 void ShowNetworkGameWindow();
22 void ShowClientList();
23 void ShowNetworkCompanyPasswordWindow(Window
*parent
);
26 /** Company information stored at the client side */
27 struct NetworkCompanyInfo
: NetworkCompanyStats
{
28 char company_name
[NETWORK_COMPANY_NAME_LENGTH
]; ///< Company name
29 Year inaugurated_year
; ///< What year the company started in
30 Money company_value
; ///< The company value
31 Money money
; ///< The amount of money the company has
32 Money income
; ///< How much did the company earned last year
33 uint16 performance
; ///< What was his performance last month?
34 bool use_password
; ///< Is there a password
35 char clients
[NETWORK_CLIENTS_LENGTH
]; ///< The clients that control this company (Name1, name2, ..)
38 NetworkCompanyInfo
*GetLobbyCompanyInfo(CompanyID company
);
40 #endif /* NETWORK_GUI_H */