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 "../date_type.h"
15 #include "../economy_type.h"
16 #include "../window_type.h"
17 #include "network_type.h"
18 #include "network_gamelist.h"
20 void ShowNetworkNeedPassword(NetworkPasswordType npt
);
21 void ShowNetworkChatQueryWindow(DestType type
, int dest
);
22 void ShowJoinStatusWindow();
23 void ShowNetworkGameWindow();
24 void ShowClientList();
25 void ShowNetworkCompanyPasswordWindow(Window
*parent
);
28 /** Company information stored at the client side */
29 struct NetworkCompanyInfo
: NetworkCompanyStats
{
30 std::string company_name
; ///< Company name
31 Year inaugurated_year
; ///< What year the company started in
32 Money company_value
; ///< The company value
33 Money money
; ///< The amount of money the company has
34 Money income
; ///< How much did the company earn last year
35 uint16 performance
; ///< What was his performance last month?
36 bool use_password
; ///< Is there a password
37 std::string clients
; ///< The clients that control this company (Name1, name2, ..)
40 NetworkCompanyInfo
*GetLobbyCompanyInfo(CompanyID company
);
41 NetworkGameList
*GetLobbyGameInfo();
42 void ShowNetworkAskRelay(const std::string
&connection_string
, const std::string
&token
);
44 #endif /* NETWORK_GUI_H */