OpenTTD Source: src/station_gui.h Source File

OpenTTD Source 12.0-beta1

station_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 STATION_GUI_H
11 #define STATION_GUI_H
12
13 #include "command_type.h"
14 #include "tilearea_type.h"
15 #include "window_type.h"
16
17
19 enum StationCoverageType {
20 SCT_PASSENGERS_ONLY,
21 SCT_NON_PASSENGERS_ONLY,
22 SCT_ALL,
23 };
24
25 int DrawStationCoverageAreaText(int left, int right, int top, StationCoverageType sct, int rad, bool supplies);
26 void CheckRedrawStationCoverage(const Window *w);
27
28 void ShowSelectStationIfNeeded(const CommandContainer &cmd, TileArea ta);
29 void ShowSelectWaypointIfNeeded(const CommandContainer &cmd, TileArea ta);
30
31 #endif /* STATION_GUI_H */
window_type.h
CommandContainer
Structure for buffering the build command when selecting a station to join.
Definition: command_type.h:479
ShowSelectStationIfNeeded
void ShowSelectStationIfNeeded(const CommandContainer &cmd, TileArea ta)
Show the station selection window when needed.
Definition: station_gui.cpp:2464
SCT_PASSENGERS_ONLY
@ SCT_PASSENGERS_ONLY
Draw only passenger class cargoes.
Definition: station_gui.h:20
CheckRedrawStationCoverage
void CheckRedrawStationCoverage(const Window *w)
Check whether we need to redraw the station coverage text.
Definition: station_gui.cpp:126
StationCoverageType
StationCoverageType
Types of cargo to display for station coverage.
Definition: station_gui.h:19
OrthogonalTileArea
Represents the covered area of e.g.
Definition: tilearea_type.h:18
ShowSelectWaypointIfNeeded
void ShowSelectWaypointIfNeeded(const CommandContainer &cmd, TileArea ta)
Show the waypoint selection window when needed.
Definition: station_gui.cpp:2474
command_type.h
SCT_ALL
@ SCT_ALL
Draw all cargoes.
Definition: station_gui.h:22
tilearea_type.h
DrawStationCoverageAreaText
int DrawStationCoverageAreaText(int left, int right, int top, StationCoverageType sct, int rad, bool supplies)
Calculates and draws the accepted or supplied cargo around the selected tile(s)
Definition: station_gui.cpp:54
SCT_NON_PASSENGERS_ONLY
@ SCT_NON_PASSENGERS_ONLY
Draw all non-passenger class cargoes.
Definition: station_gui.h:21
Window
Data structure for an opened window.
Definition: window_gui.h:279