OpenTTD Source 20241224-master-gf74b0cf984
network_gui.h
Go to the documentation of this file.
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 */
7
10#ifndef NETWORK_GUI_H
11#define NETWORK_GUI_H
12
13#include "../company_type.h"
14#include "../timer/timer_game_calendar.h"
15#include "../economy_type.h"
16#include "../window_type.h"
17#include "network_type.h"
18#include "network_gamelist.h"
19
20void ShowNetworkNeedPassword(std::shared_ptr<class NetworkAuthenticationPasswordRequest> request);
21void ShowNetworkChatQueryWindow(DestType type, int dest);
22void ShowJoinStatusWindow();
23void ShowNetworkGameWindow();
24void ShowClientList();
25void ShowNetworkAskRelay(const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token);
27void ShowSurveyResultTextfileWindow();
28
40
45
46#endif /* NETWORK_GUI_H */
Handling of the list of games.
void ShowNetworkAskRelay(const std::string &server_connection_string, const std::string &relay_connection_string, const std::string &token)
Show a modal confirmation window with "no" / "yes, once" / "yes, always" buttons.
void ShowNetworkChatQueryWindow(DestType type, int dest)
Show the chat window.
NetworkRelayWindowCloseData
Definition network_gui.h:41
@ NRWCD_UNHANDLED
Relay request is unhandled.
Definition network_gui.h:42
@ NRWCD_HANDLED
Relay request is handled, either by user or by timeout.
Definition network_gui.h:43
void ShowNetworkAskSurvey()
Show a modal confirmation window with "no" / "preview" / "yes" buttons.
Types used for networking.
DestType
Destination of our chat messages.
Company information stored at the client side.
Definition network_gui.h:30
Money money
The amount of money the company has.
Definition network_gui.h:34
std::string clients
The clients that control this company (Name1, name2, ..)
Definition network_gui.h:38
uint16_t performance
What was his performance last month?
Definition network_gui.h:36
TimerGameCalendar::Year inaugurated_year
What year the company started in.
Definition network_gui.h:32
bool use_password
Is there a password.
Definition network_gui.h:37
std::string company_name
Company name.
Definition network_gui.h:31
Money company_value
The company value.
Definition network_gui.h:33
Money income
How much did the company earn last year.
Definition network_gui.h:35
Simple calculated statistics of a company.
Templated helper to make a type-safe 'typedef' representing a single POD value.