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