OpenTTD Source: src/road_gui.h Source File

OpenTTD Source 15.0-RC2

road_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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef ROAD_GUI_H
11#define ROAD_GUI_H
12
13#include "road.h"
14#include "road_type.h"
15#include "tile_type.h"
16#include "direction_type.h"
17#include "dropdown_type.h"
18
19struct Window *ShowBuildRoadToolbar(RoadType roadtype);
20struct Window *ShowBuildRoadScenToolbar(RoadType roadtype);
21void ConnectRoadToStructure(TileIndex tile, DiagDirection direction);
22 DropDownList GetRoadTypeDropDownList(RoadTramTypes rtts, bool for_replacement = false, bool all_option = false);
23 DropDownList GetScenRoadTypeDropDownList(RoadTramTypes rtts);
24void InitializeRoadGUI();
25
26#endif /* ROAD_GUI_H */
direction_type.h
Different types to 'show' directions.
DiagDirection
DiagDirection
Enumeration for diagonal directions.
Definition direction_type.h:78
dropdown_type.h
Types related to the drop down widget.
DropDownList
std::vector< std::unique_ptr< const DropDownListItem > > DropDownList
A drop down list is a collection of drop down list items.
Definition dropdown_type.h:56
road.h
Road specific functions.
InitializeRoadGUI
void InitializeRoadGUI()
I really don't know why rail_gui.cpp has this too, shouldn't be included in the other one?
Definition road_gui.cpp:1760
ShowBuildRoadScenToolbar
struct Window * ShowBuildRoadScenToolbar(RoadType roadtype)
Show the road building toolbar in the scenario editor.
Definition road_gui.cpp:1097
ShowBuildRoadToolbar
struct Window * ShowBuildRoadToolbar(RoadType roadtype)
Open the build road toolbar window.
Definition road_gui.cpp:1006
ConnectRoadToStructure
void ConnectRoadToStructure(TileIndex tile, DiagDirection direction)
If required, connects a new structure to an existing road or tram by building the missing roadbit.
Definition road_gui.cpp:163
road_type.h
Enums and other types related to roads.
RoadTramTypes
RoadTramTypes
Definition road_type.h:42
RoadType
RoadType
The different roadtypes we support.
Definition road_type.h:23
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > >
Window
Data structure for an opened window.
Definition window_gui.h:274
tile_type.h
Types related to tiles.