# Conflicts: # .github/workflows/commit-checker.yml # src/company_cmd.cpp # src/console_cmds.cpp # src/crashlog.cpp # src/lang/english.txt # src/lang/german.txt # src/lang/indonesian.txt # src/lang/japanese.txt # src/lang/korean.txt # src/lang/swedish.txt # src/linkgraph/linkgraphjob.cpp # src/linkgraph/mcf.cpp # src/network/core/tcp.cpp # src/network/core/tcp.h # src/network/core/tcp_game.h # src/network/core/udp.h # src/network/network.cpp # src/network/network_admin.cpp # src/network/network_admin.h # src/network/network_chat_gui.cpp # src/network/network_client.cpp # src/network/network_client.h # src/network/network_func.h # src/network/network_internal.h # src/network/network_server.cpp # src/network/network_server.h # src/newgrf.cpp # src/newgrf_station.cpp # src/order_gui.cpp # src/rail_cmd.cpp # src/saveload/saveload.cpp # src/settings.cpp # src/settings_gui.cpp # src/settings_internal.h # src/settings_type.h # src/station_cmd.cpp # src/stdafx.h # src/table/currency_settings.ini # src/table/misc_settings.ini # src/table/settings.h.preamble # src/table/settings.ini # src/terraform_cmd.cpp # src/timetable_gui.cpp # src/train_cmd.cpp # src/tree_cmd.cpp # src/water_cmd.cpp
45 lines
1.9 KiB
C++
45 lines
1.9 KiB
C++
/*
|
|
* This file is part of OpenTTD.
|
|
* 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.
|
|
* 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.
|
|
* 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/>.
|
|
*/
|
|
|
|
/** @file network_gui.h GUIs related to networking. */
|
|
|
|
#ifndef NETWORK_GUI_H
|
|
#define NETWORK_GUI_H
|
|
|
|
#include "../company_type.h"
|
|
#include "../date_type.h"
|
|
#include "../economy_type.h"
|
|
#include "../window_type.h"
|
|
#include "network_type.h"
|
|
#include "network_gamelist.h"
|
|
|
|
void ShowNetworkNeedPassword(NetworkPasswordType npt);
|
|
void ShowNetworkGiveMoneyWindow(CompanyID company);
|
|
void ShowNetworkChatQueryWindow(DestType type, int dest);
|
|
void ShowJoinStatusWindow();
|
|
void ShowNetworkGameWindow();
|
|
void ShowClientList();
|
|
void ShowNetworkCompanyPasswordWindow(Window *parent);
|
|
|
|
|
|
/** Company information stored at the client side */
|
|
struct NetworkCompanyInfo : NetworkCompanyStats {
|
|
std::string company_name; ///< Company name
|
|
Year inaugurated_year; ///< What year the company started in
|
|
Money company_value; ///< The company value
|
|
Money money; ///< The amount of money the company has
|
|
Money income; ///< How much did the company earn last year
|
|
uint16 performance; ///< What was his performance last month?
|
|
bool use_password; ///< Is there a password
|
|
std::string clients; ///< The clients that control this company (Name1, name2, ..)
|
|
};
|
|
|
|
NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
|
|
NetworkGameList *GetLobbyGameInfo();
|
|
|
|
#endif /* NETWORK_GUI_H */
|