OpenTTD Source: src/road_internal.h Source File

OpenTTD Source 1.11.0-RC1

road_internal.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 ROAD_INTERNAL_H
11 #define ROAD_INTERNAL_H
12
13 #include "tile_cmd.h"
14 #include "road_type.h"
15
16 RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb);
17
18 CommandCost CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadTramType rtt, DoCommandFlag flags, bool town_check = true);
19
20 void DrawRoadCatenary(const TileInfo *ti);
21
22 #endif /* ROAD_INTERNAL_H */
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:78
TileInfo
Tile information, used while rendering the tile.
Definition: tile_cmd.h:42
Window::owner
Owner owner
The owner of the content shown in this window. Company colour is acquired from this variable.
Definition: window_gui.h:324
Owner
Owner
Enum for all companies/owners.
Definition: company_type.h:18
CheckAllowRemoveRoad
CommandCost CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, RoadTramType rtt, DoCommandFlag flags, bool town_check=true)
Is it allowed to remove the given road bits from the given tile?
Definition: road_cmd.cpp:266
DoCommandFlag
DoCommandFlag
List of flags for a command.
Definition: command_type.h:346
tile_cmd.h
RoadBits
RoadBits
Enumeration for the road parts on a tile.
Definition: road_type.h:50
CommandCost
Common return value for all commands.
Definition: command_type.h:23
CleanUpRoadBits
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
Clean up unnecessary RoadBits of a planned tile.
Definition: road.cpp:47
Window::flags
WindowFlags flags
Window flags.
Definition: window_gui.h:310
DrawRoadCatenary
void DrawRoadCatenary(const TileInfo *ti)
Draws the catenary for the given tile.
Definition: road_cmd.cpp:1449
road_type.h