#include <ai_waypoint.hpp>
Static Public Member Functions | |
static const char * | GetClassName () |
static bool | IsValidWaypoint (StationID waypoint_id) |
Checks whether the given waypoint is valid and owned by you. | |
static StationID | GetWaypointID (TileIndex tile) |
Get the StationID of a tile. |
Definition at line 22 of file ai_waypoint.hpp.
bool AIWaypoint::IsValidWaypoint | ( | StationID | waypoint_id | ) | [static] |
Checks whether the given waypoint is valid and owned by you.
waypoint_id | The waypoint to check. |
Definition at line 17 of file ai_waypoint.cpp.
Get the StationID of a tile.
tile | The tile to find the StationID of. |
Definition at line 23 of file ai_waypoint.cpp.
References GetStationIndex(), AIRail::IsRailWaypointTile(), and AIBaseStation::STATION_INVALID.