OpenTTD
road_gui.h
Go to the documentation of this file.
1 /* $Id: road_gui.h 21887 2011-01-22 10:10:03Z rubidium $ */
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 ROAD_GUI_H
13 #define ROAD_GUI_H
14 
15 #include "road_type.h"
16 #include "tile_type.h"
17 #include "direction_type.h"
18 
19 struct Window *ShowBuildRoadToolbar(RoadType roadtype);
21 void ConnectRoadToStructure(TileIndex tile, DiagDirection direction);
22 
23 #endif /* ROAD_GUI_H */
Different types to &#39;show&#39; directions.
Enums and other types related to roads.
struct Window * ShowBuildRoadToolbar(RoadType roadtype)
Open the build road toolbar window.
Definition: road_gui.cpp:805
RoadType
The different roadtypes we support.
Definition: road_type.h:22
Data structure for an opened window.
Definition: window_gui.h:271
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:164
struct Window * ShowBuildRoadScenToolbar()
Show the road building toolbar in the scenario editor.
Definition: road_gui.cpp:853
DiagDirection
Enumeration for diagonal directions.
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
Types related to tiles.