(svn r23636) -Add: introduce ScriptText in parameters where it can be used
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#define SCRIPT_BASESTATION_HPP
|
||||
|
||||
#include "script_error.hpp"
|
||||
#include "script_text.hpp"
|
||||
|
||||
/**
|
||||
* Base class for stations and waypoints.
|
||||
@@ -49,15 +50,14 @@ public:
|
||||
/**
|
||||
* Set the name this basestation.
|
||||
* @param station_id The basestation to set the name of.
|
||||
* @param name The new name of the station.
|
||||
* @param name The new name of the station (can be either a raw string, or a ScriptText object).
|
||||
* @pre IsValidBaseStation(station_id).
|
||||
* @pre 'name' must have at least one character.
|
||||
* @pre 'name' must have at most 30 characters.
|
||||
* @pre name != NULL && len(name) != 0.
|
||||
* @game @pre Valid ScriptCompanyMode active in scope.
|
||||
* @exception ScriptError::ERR_NAME_IS_NOT_UNIQUE
|
||||
* @return True if the name was changed.
|
||||
*/
|
||||
static bool SetName(StationID station_id, const char *name);
|
||||
static bool SetName(StationID station_id, Text *name);
|
||||
|
||||
/**
|
||||
* Get the current location of a basestation.
|
||||
|
Reference in New Issue
Block a user