
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. | |
| static char * | GetName (StationID station_id) |
| Get the name of a basestation. | |
| static bool | SetName (StationID station_id, Text *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. | |
| 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 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::SetName | ( | StationID | station_id, | |
| Text * | name | |||
| ) | [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). |
name != NULL && len(name) != 0.
| AIError::ERR_NAME_IS_NOT_UNIQUE |
| static TileIndex AIBaseStation::GetLocation | ( | StationID | station_id | ) | [static] |
Get the current location of a basestation.
| station_id | The basestation to get the location of. |
| 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. |
1.5.6