2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file network_gui.h GUIs related to networking. */
|
|
|
|
|
2006-09-01 15:35:43 +02:00
|
|
|
#ifndef NETWORK_GUI_H
|
|
|
|
#define NETWORK_GUI_H
|
|
|
|
|
2010-01-15 17:41:15 +01:00
|
|
|
#include "../company_type.h"
|
2021-04-26 15:18:10 +02:00
|
|
|
#include "../date_type.h"
|
2010-01-15 17:41:15 +01:00
|
|
|
#include "../economy_type.h"
|
2008-05-30 20:20:26 +02:00
|
|
|
#include "../window_type.h"
|
|
|
|
#include "network_type.h"
|
2021-04-26 20:04:02 +02:00
|
|
|
#include "network_gamelist.h"
|
2006-10-12 16:59:27 +02:00
|
|
|
|
2006-09-01 15:35:43 +02:00
|
|
|
void ShowNetworkNeedPassword(NetworkPasswordType npt);
|
2007-04-26 09:41:24 +02:00
|
|
|
void ShowNetworkChatQueryWindow(DestType type, int dest);
|
2007-03-07 12:47:46 +01:00
|
|
|
void ShowJoinStatusWindow();
|
|
|
|
void ShowNetworkGameWindow();
|
|
|
|
void ShowClientList();
|
2008-05-15 21:24:15 +02:00
|
|
|
void ShowNetworkCompanyPasswordWindow(Window *parent);
|
2021-08-18 12:06:14 +02:00
|
|
|
void ShowNetworkAskRelay(const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token);
|
2006-10-12 16:59:27 +02:00
|
|
|
|
2008-12-22 19:40:57 +01:00
|
|
|
|
|
|
|
/** Company information stored at the client side */
|
|
|
|
struct NetworkCompanyInfo : NetworkCompanyStats {
|
2021-05-14 17:43:23 +02:00
|
|
|
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, ..)
|
2008-12-22 19:40:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-09-28 20:42:35 +02:00
|
|
|
#endif /* NETWORK_GUI_H */
|