Public Types | |
enum | SpecialWaypointIDs { WAYPOINT_INVALID = 0xFFFF } |
Special waypoint IDs signalling different kinds of waypoints. More... | |
Static Public Member Functions | |
static bool | IsValidWaypoint (WaypointID waypoint_id) |
Checks whether the given waypoint is valid and owned by you. | |
static WaypointID | GetWaypointID (TileIndex tile) |
Get the WaypointID of a tile. | |
static char * | GetName (WaypointID waypoint_id) |
Get the name of a waypoint. | |
static bool | SetName (WaypointID waypoint_id, const char *name) |
Set the name this waypoint. | |
static TileIndex | GetLocation (WaypointID waypoint_id) |
Get the current location of a waypoint. |
static TileIndex AIWaypoint::GetLocation | ( | WaypointID | waypoint_id | ) | [static] |
Get the current location of a waypoint.
waypoint_id | The waypoint to get the location of. |
static char* AIWaypoint::GetName | ( | WaypointID | waypoint_id | ) | [static] |
Get the name of a waypoint.
waypoint_id | The waypoint to get the name of. |
static WaypointID AIWaypoint::GetWaypointID | ( | TileIndex | tile | ) | [static] |
Get the WaypointID of a tile.
tile | The tile to find the WaypointID of. |
static bool AIWaypoint::IsValidWaypoint | ( | WaypointID | waypoint_id | ) | [static] |
Checks whether the given waypoint is valid and owned by you.
waypoint_id | The waypoint to check. |
static bool AIWaypoint::SetName | ( | WaypointID | waypoint_id, | |
const char * | name | |||
) | [static] |
Set the name this waypoint.
waypoint_id | The waypoint to set the name of. | |
name | The new name of the waypoint. |
'name' must have at least one character.
'name' must have at most 30 characters.
AIError::ERR_NAME_IS_NOT_UNIQUE |