(svn r23624) -Add: ScriptVehicle/ScriptStation/ScriptSign::GetOwner, to get the owner of those objects (GameScript only)

This commit is contained in:
truebrain
2011-12-19 21:00:40 +00:00
parent 3a535690d4
commit d85a628dde
9 changed files with 52 additions and 0 deletions

View File

@@ -59,6 +59,15 @@ public:
*/
static bool IsValidStation(StationID station_id);
/**
* Get the owner of a station.
* @param station_id The station to get the owner of.
* @pre IsValidStation(station_id).
* @return The owner the station has.
* @api -ai
*/
static ScriptCompany::CompanyID GetOwner(StationID station_id);
/**
* Get the StationID of a tile, if there is a station.
* @param tile The tile to find the stationID of