OpenTTD

company_gui.h
Go to the documentation of this file.
1 /* $Id: company_gui.h 23410 2011-12-03 23:40:08Z michi_cc $ */
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 COMPANY_GUI_H
13 #define COMPANY_GUI_H
14
15 #include "company_type.h"
16 #include "gfx_type.h"
17
18 TextColour GetDrawStringCompanyColour(CompanyID company);
19 void DrawCompanyIcon(CompanyID c, int x, int y);
20
21 void ShowCompanyStations(CompanyID company);
22 void ShowCompanyFinances(CompanyID company);
23 void ShowCompany(CompanyID company);
24
25 void InvalidateCompanyWindows(const Company *c);
26 void DeleteCompanyWindows(CompanyID company);
27 void DirtyCompanyInfrastructureWindows(CompanyID company);
28
29 #endif /* COMPANY_GUI_H */
InvalidateCompanyWindows
void InvalidateCompanyWindows(const Company *c)
Refresh all windows owned by a company.
Definition: company_cmd.cpp:181
DeleteCompanyWindows
void DeleteCompanyWindows(CompanyID company)
Delete all windows of a company.
Definition: window.cpp:1172
ShowCompanyStations
void ShowCompanyStations(CompanyID company)
Opens window with list of company&#39;s stations.
Definition: station_gui.cpp:750
ShowCompanyFinances
void ShowCompanyFinances(CompanyID company)
Open the finances window of a company.
Definition: company_gui.cpp:482
TextColour
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...
Definition: gfx_type.h:247
ShowCompany
void ShowCompany(CompanyID company)
Show the window with the overview of the company.
Definition: company_gui.cpp:2462
DirtyCompanyInfrastructureWindows
void DirtyCompanyInfrastructureWindows(CompanyID company)
Redraw all windows with company infrastructure counts.
Definition: company_gui.cpp:2473
DrawCompanyIcon
void DrawCompanyIcon(CompanyID c, int x, int y)
Draw the icon of a company.
Definition: company_cmd.cpp:141
Company
Definition: company_base.h:110
GetDrawStringCompanyColour
TextColour GetDrawStringCompanyColour(CompanyID company)
Get the colour for DrawString-subroutines which matches the colour of the company.
Definition: company_cmd.cpp:129
company_type.h
Types related to companies.
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:20
gfx_type.h
Types related to the graphics and/or input devices.