OpenTTD

waypoint_func.h
Go to the documentation of this file.
1 /* $Id: waypoint_func.h 21890 2011-01-22 14:52:20Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
9
12 #ifndef WAYPOINT_FUNC_H
13 #define WAYPOINT_FUNC_H
14
15 #include "rail_type.h"
16 #include "command_type.h"
17 #include "station_type.h"
18
19 CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags);
20
21 Axis GetAxisForNewWaypoint(TileIndex tile);
22 void ShowWaypointWindow(const Waypoint *wp);
23 void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype);
24
25 #endif /* WAYPOINT_FUNC_H */
ShowWaypointWindow
void ShowWaypointWindow(const Waypoint *wp)
Show the window for the given waypoint.
Definition: waypoint_gui.cpp:181
RailType
RailType
Enumeration for all possible railtypes.
Definition: rail_type.h:29
Waypoint
Representation of a waypoint.
Definition: waypoint_base.h:18
CommandCost
Common return value for all commands.
Definition: command_type.h:25
command_type.h
Types related to commands.
station_type.h
Types related to stations.
DoCommandFlag
DoCommandFlag
List of flags for a command.
Definition: command_type.h:340
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
RemoveBuoy
CommandCost RemoveBuoy(TileIndex tile, DoCommandFlag flags)
Remove a buoy.
Definition: waypoint_cmd.cpp:343
DrawWaypointSprite
void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
Draw a waypoint.
Definition: waypoint.cpp:28
GetAxisForNewWaypoint
Axis GetAxisForNewWaypoint(TileIndex tile)
Get the axis for a new waypoint.
Definition: waypoint_cmd.cpp:82
Axis
Axis
Allow incrementing of DiagDirDiff variables.
Definition: direction_type.h:127
rail_type.h
The different types of rail.