OpenTTD Source 20241224-master-gf74b0cf984
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 <http://www.gnu.org/licenses/>.
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
20
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 */
Common return value for all commands.
Types related to commands.
DoCommandFlag
List of flags for a command.
Axis
Allow incrementing of DiagDirDiff variables.
StationClassID
The different types of rail.
RailType
Enumeration for all possible railtypes.
Definition rail_type.h:27
Types related to stations.
Representation of a waypoint.
Axis GetAxisForNewRailWaypoint(TileIndex tile)
Get the axis for a new rail waypoint.
Axis GetAxisForNewRoadWaypoint(TileIndex tile)
Get the axis for a new road waypoint.
void DrawWaypointSprite(int x, int y, StationClassID station_class, uint16_t station_type, RailType railtype)
Draw a waypoint.
Definition waypoint.cpp:28
void ShowWaypointWindow(const Waypoint *wp)
Show the window for the given waypoint.
CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags)
Remove a buoy.