OpenTTD Source  20241108-master-g80f628063a
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 */
Common return value for all commands.
Definition: command_type.h:23
DoCommandFlag
List of flags for a command.
Definition: command_type.h:374
Owner
Enum for all companies/owners.
Definition: company_type.h:18
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
Clean up unnecessary RoadBits of a planned tile.
Definition: road.cpp:47
void DrawRoadCatenary(const TileInfo *ti)
Draws the catenary for the given tile.
Definition: road_cmd.cpp:1451
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:262
Enums and other types related to roads.
RoadBits
Enumeration for the road parts on a tile.
Definition: road_type.h:52
Tile information, used while rendering the tile.
Definition: tile_cmd.h:43
Generic 'commands' that can be performed on all tiles.