OpenTTD
network_gui.h
Go to the documentation of this file.
1 /* $Id$ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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  */
9 
12 #ifndef NETWORK_GUI_H
13 #define NETWORK_GUI_H
14 
15 #include "../company_type.h"
16 #include "../economy_type.h"
17 #include "../window_type.h"
18 #include "network_type.h"
19 
20 void ShowNetworkNeedPassword(NetworkPasswordType npt);
21 void ShowNetworkGiveMoneyWindow(CompanyID company);
22 void ShowNetworkChatQueryWindow(DestType type, int dest);
23 void ShowJoinStatusWindow();
24 void ShowNetworkGameWindow();
25 void ShowClientList();
26 void ShowNetworkCompanyPasswordWindow(Window *parent);
27 
28 
36  uint16 performance;
37  bool use_password;
39 };
40 
42 
43 #endif /* NETWORK_GUI_H */
static const uint NETWORK_CLIENTS_LENGTH
The maximum length for the list of clients that controls a company, in bytes including &#39;\0&#39;...
Definition: config.h:48
Owner
Enum for all companies/owners.
Definition: company_type.h:20
char clients[NETWORK_CLIENTS_LENGTH]
The clients that control this company (Name1, name2, ..)
Definition: network_gui.h:38
NetworkCompanyInfo * GetLobbyCompanyInfo(CompanyID company)
Get the company information of a given company to fill for the lobby.
char company_name[NETWORK_COMPANY_NAME_LENGTH]
Company name.
Definition: network_gui.h:31
Money company_value
The company value.
Definition: network_gui.h:33
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Definition: date_type.h:20
Data structure for an opened window.
Definition: window_gui.h:278
Year inaugurated_year
What year the company started in.
Definition: network_gui.h:32
Company information stored at the client side.
Definition: network_gui.h:30
void ShowNetworkChatQueryWindow(DestType type, int dest)
Show the chat window.
uint16 performance
What was his performance last month?
Definition: network_gui.h:36
bool use_password
Is there a password.
Definition: network_gui.h:37
Types used for networking.
static const uint NETWORK_COMPANY_NAME_LENGTH
The maximum length of the company name, in bytes including &#39;\0&#39;.
Definition: config.h:43
Simple calculated statistics of a company.
Definition: network_type.h:59
Money money
The amount of money the company has.
Definition: network_gui.h:34
NetworkPasswordType
The type of password we&#39;re asking for.
Definition: network_type.h:74
DestType
Destination of our chat messages.
Definition: network_type.h:80
Money income
How much did the company earned last year.
Definition: network_gui.h:35