Base class for stations and waypoints. More...
Public Types | |
enum | SpecialStationIDs { STATION_NEW = 0xFFFD, STATION_JOIN_ADJACENT = 0xFFFE, STATION_INVALID = 0xFFFF } |
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. | |
static char * | GetName (StationID station_id) |
Get the name of a basestation. | |
static bool | SetName (StationID station_id, const char *name) |
Set the name this basestation. | |
static TileIndex | GetLocation (StationID station_id) |
Get the current location of a basestation. | |
static int32 | GetConstructionDate (StationID station_id) |
Get the last date a station part was added to this station. |
Base class for stations and waypoints.
static int32 AIBaseStation::GetConstructionDate | ( | StationID | station_id | ) | [static] |
Get the last 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 char* AIBaseStation::GetName | ( | StationID | station_id | ) | [static] |
Get the name of a basestation.
station_id | The basestation to get the name of. |
static bool AIBaseStation::IsValidBaseStation | ( | StationID | station_id | ) | [static] |
Checks whether the given basestation is valid and owned by you.
station_id | The station to check. |
static bool AIBaseStation::SetName | ( | StationID | station_id, | |
const char * | name | |||
) | [static] |
Set the name this basestation.
station_id | The basestation to set the name of. | |
name | The new name of the station. |
AIError::ERR_NAME_IS_NOT_UNIQUE |