OpenTTD Source: src/road_internal.h Source File

OpenTTD Source 15.0-beta1

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
20void DrawRoadCatenary(const TileInfo *ti);
21
22#endif /* ROAD_INTERNAL_H */
CommandCost
Common return value for all commands.
Definition command_type.h:23
DoCommandFlag
DoCommandFlag
List of flags for a command.
Definition command_type.h:374
Owner
Owner
Enum for all companies/owners.
Definition company_type.h:18
CleanUpRoadBits
RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb)
Clean up unnecessary RoadBits of a planned tile.
Definition road.cpp:47
DrawRoadCatenary
void DrawRoadCatenary(const TileInfo *ti)
Draws the catenary for the given tile.
Definition road_cmd.cpp:1451
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:262
road_type.h
Enums and other types related to roads.
RoadBits
RoadBits
Enumeration for the road parts on a tile.
Definition road_type.h:52
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > >
TileInfo
Tile information, used while rendering the tile.
Definition tile_cmd.h:43
tile_cmd.h
Generic 'commands' that can be performed on all tiles.