OpenTTD Source  1.11.2
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 
18 
20 void ShowWaypointWindow(const Waypoint *wp);
21 void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype);
22 
23 #endif /* WAYPOINT_FUNC_H */
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:83
RemoveBuoy
CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags)
Remove a buoy.
Definition: waypoint_cmd.cpp:360
Waypoint
Representation of a waypoint.
Definition: waypoint_base.h:16
DoCommandFlag
DoCommandFlag
List of flags for a command.
Definition: command_type.h:346
RailType
RailType
Enumeration for all possible railtypes.
Definition: rail_type.h:27
CommandCost
Common return value for all commands.
Definition: command_type.h:23
DrawWaypointSprite
void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
Draw a waypoint.
Definition: waypoint.cpp:27
command_type.h
rail_type.h
Axis
Axis
Allow incrementing of DiagDirDiff variables.
Definition: direction_type.h:123
ShowWaypointWindow
void ShowWaypointWindow(const Waypoint *wp)
Show the window for the given waypoint.
Definition: waypoint_gui.cpp:180
GetAxisForNewWaypoint
Axis GetAxisForNewWaypoint(TileIndex tile)
Get the axis for a new waypoint.
Definition: waypoint_cmd.cpp:97
station_type.h