diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:36 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:36 +0000 |
commit | 9b6b2cabc187f3cb72a53d396418ab1b9ebd2933 (patch) | |
tree | ac5d34e3837adcdf45c69ab844bd823dc740900a /src/script/api/script_town.hpp | |
parent | cc3f42794d134b9f4b6c7efecb07d4b3366887c1 (diff) | |
download | openttd-9b6b2cabc187f3cb72a53d396418ab1b9ebd2933.tar.xz |
(svn r23633) -Add: allow most build commands from GameScript given a CompanyMode is active in that scope
Diffstat (limited to 'src/script/api/script_town.hpp')
-rw-r--r-- | src/script/api/script_town.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/script/api/script_town.hpp b/src/script/api/script_town.hpp index d7f0c44f3..1138d3336 100644 --- a/src/script/api/script_town.hpp +++ b/src/script/api/script_town.hpp @@ -24,7 +24,6 @@ class ScriptTown : public ScriptObject { public: /** * Actions that one can perform on a town. - * @api -game */ enum TownAction { /* Note: these values represent part of the in-game order of the _town_action_proc array */ @@ -281,8 +280,8 @@ public: * Find out if this town has a statue for the current company. * @param town_id The town to check. * @pre IsValidTown(town_id). + * @game @pre Valid ScriptCompanyMode active in scope. * @return True if the town has a statue. - * @api -game */ static bool HasStatue(TownID town_id); @@ -307,10 +306,10 @@ public: * Find out which company currently has the exclusive rights of this town. * @param town_id The town to check. * @pre IsValidTown(town_id). + * @game @pre Valid ScriptCompanyMode active in scope. * @return The company that has the exclusive rights. The value * ScriptCompany::COMPANY_INVALID means that there are currently no * exclusive rights given out to anyone. - * @api -game */ static ScriptCompany::CompanyID GetExclusiveRightsCompany(TownID town_id); @@ -329,8 +328,8 @@ public: * @param town_id The town to perform the action on. * @param town_action The action to perform on the town. * @pre IsValidTown(town_id). + * @game @pre Valid ScriptCompanyMode active in scope. * @return True if and only if the action can performed. - * @api -game */ static bool IsActionAvailable(TownID town_id, TownAction town_action); @@ -340,8 +339,8 @@ public: * @param town_action The action to perform on the town. * @pre IsValidTown(town_id). * @pre IsActionAvailable(town_id, town_action). + * @game @pre Valid ScriptCompanyMode active in scope. * @return True if the action succeeded. - * @api -game */ static bool PerformTownAction(TownID town_id, TownAction town_action); |