OpenTTD Source: src/waypoint_func.h Source File

OpenTTD Source 15.0-RC2

waypoint_func.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 WAYPOINT_FUNC_H
11#define WAYPOINT_FUNC_H
12
13#include "rail_type.h"
14#include "command_type.h"
15#include "station_type.h"
16
17enum StationClassID : uint16_t;
18
19 CommandCost RemoveBuoy(TileIndex tile, DoCommandFlags flags);
20
21 Axis GetAxisForNewRailWaypoint(TileIndex tile);
22 Axis GetAxisForNewRoadWaypoint(TileIndex tile);
23void ShowWaypointWindow(const Waypoint *wp);
24void DrawWaypointSprite(int x, int y, StationClassID station_class, uint16_t station_type, RailType railtype);
25
26#endif /* WAYPOINT_FUNC_H */
CommandCost
Common return value for all commands.
Definition command_type.h:24
EnumBitSet
Enum-as-bit-set wrapper.
Definition enum_type.hpp:177
command_type.h
Types related to commands.
Axis
Axis
Allow incrementing of DiagDirDiff variables.
Definition direction_type.h:123
StationClassID
StationClassID
Definition newgrf_station.h:103
rail_type.h
The different types of rail.
RailType
RailType
Enumeration for all possible railtypes.
Definition rail_type.h:25
station_type.h
Types related to stations.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > >
Waypoint
Representation of a waypoint.
Definition waypoint_base.h:23
GetAxisForNewRailWaypoint
Axis GetAxisForNewRailWaypoint(TileIndex tile)
Get the axis for a new rail waypoint.
Definition waypoint_cmd.cpp:106
GetAxisForNewRoadWaypoint
Axis GetAxisForNewRoadWaypoint(TileIndex tile)
Get the axis for a new road waypoint.
Definition waypoint_cmd.cpp:128
RemoveBuoy
CommandCost RemoveBuoy(TileIndex tile, DoCommandFlags flags)
Remove a buoy.
Definition waypoint_cmd.cpp:530
DrawWaypointSprite
void DrawWaypointSprite(int x, int y, StationClassID station_class, uint16_t station_type, RailType railtype)
Draw a waypoint.
Definition waypoint.cpp:28
ShowWaypointWindow
void ShowWaypointWindow(const Waypoint *wp)
Show the window for the given waypoint.
Definition waypoint_gui.cpp:232