Fix #8316: Make sort industries by production and transported with a cargo filter...
[openttd-github.git] / src / network / network_gui.h
blob06b501cb5dc8f56e1706becd4985eea72c2bac67
1 /*
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/>.
6 */
8 /** @file network_gui.h GUIs related to networking. */
10 #ifndef NETWORK_GUI_H
11 #define NETWORK_GUI_H
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 */