OpenTTD AI API
20241117-master-ga6c526cfa0
|
Base class for stations and waypoints. More...
Public Types | |
enum | SpecialStationIDs { STATION_NEW , STATION_JOIN_ADJACENT , STATION_INVALID } |
Special station IDs for building adjacent/new stations when the adjacent/distant join features are enabled. More... | |
Static Public Member Functions | |
static bool | IsValidBaseStation (StationID station_id) |
Checks whether the given basestation is valid and owned by you. More... | |
static string | GetName (StationID station_id) |
Get the name of a basestation. More... | |
static bool | SetName (StationID station_id, Text *name) |
Set the name this basestation. More... | |
static TileIndex | GetLocation (StationID station_id) |
Get the current location of a basestation. More... | |
static AIDate::Date | GetConstructionDate (StationID station_id) |
Get the last calendar-date a station part was added to this station. More... | |
Base class for stations and waypoints.
|
static |
Get the last calendar-date a station part was added to this station.
station_id | The station to look at. |
Get the current location of a basestation.
station_id | The basestation to get the location of. |
|
static |
Get the name of a basestation.
station_id | The basestation to get the name of. |
|
static |
Checks whether the given basestation is valid and owned by you.
station_id | The station to check. |
|
static |
Set the name this basestation.
station_id | The basestation to set the name of. |
name | The new name of the station (can be either a raw string, or a AIText object). |
AIError::ERR_NAME_IS_NOT_UNIQUE |