diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk
index f3896ba5cc..dcfd4f893e 100644
--- a/src/ai/api/squirrel_export.awk
+++ b/src/ai/api/squirrel_export.awk
@@ -40,6 +40,39 @@ function dump_class_templates(name)
}
}
+function dump_fileheader()
+{
+ # Break the Id tag, so SVN doesn't replace it
+ print "/* $I" "d$ */"
+ print ""
+ print "/*"
+ print " * This file is part of OpenTTD."
+ print " * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2."
+ print " * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ print " * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see
* { diff --git a/src/script/api/script_airport.hpp b/src/script/api/script_airport.hpp index 9121c33b2b..d382e643be 100644 --- a/src/script/api/script_airport.hpp +++ b/src/script/api/script_airport.hpp @@ -16,6 +16,7 @@ /** * Class that handles all airport related functions. + * @api ai */ class ScriptAirport : public ScriptObject { public: diff --git a/src/script/api/script_base.hpp b/src/script/api/script_base.hpp index 9cffe74a79..4a963d08c1 100644 --- a/src/script/api/script_base.hpp +++ b/src/script/api/script_base.hpp @@ -16,6 +16,7 @@ /** * Class that handles some basic functions. + * @api ai * * @note The random functions are not called Random and RandomRange, because * RANDOM_DEBUG does some tricky stuff, which messes with those names. diff --git a/src/script/api/script_basestation.hpp b/src/script/api/script_basestation.hpp index 8399067e3a..b5d5e6f78c 100644 --- a/src/script/api/script_basestation.hpp +++ b/src/script/api/script_basestation.hpp @@ -16,6 +16,7 @@ /** * Base class for stations and waypoints. + * @api ai */ class ScriptBaseStation : public ScriptObject { public: diff --git a/src/script/api/script_bridge.hpp b/src/script/api/script_bridge.hpp index b6d48f0e2a..f18bebc418 100644 --- a/src/script/api/script_bridge.hpp +++ b/src/script/api/script_bridge.hpp @@ -16,6 +16,7 @@ /** * Class that handles all bridge related functions. + * @api ai */ class ScriptBridge : public ScriptObject { public: diff --git a/src/script/api/script_bridgelist.hpp b/src/script/api/script_bridgelist.hpp index 6bcdf83938..4869746407 100644 --- a/src/script/api/script_bridgelist.hpp +++ b/src/script/api/script_bridgelist.hpp @@ -16,6 +16,7 @@ /** * Create a list of bridges. + * @api ai * @ingroup ScriptList */ class ScriptBridgeList : public ScriptList { @@ -25,6 +26,7 @@ public: /** * Create a list of bridges that can be built on a specific length. + * @api ai * @ingroup ScriptList */ class ScriptBridgeList_Length : public ScriptList { diff --git a/src/script/api/script_cargo.hpp b/src/script/api/script_cargo.hpp index 9379392b4d..cd3fd8630f 100644 --- a/src/script/api/script_cargo.hpp +++ b/src/script/api/script_cargo.hpp @@ -16,6 +16,7 @@ /** * Class that handles all cargo related functions. + * @api ai */ class ScriptCargo : public ScriptObject { public: diff --git a/src/script/api/script_cargolist.hpp b/src/script/api/script_cargolist.hpp index 964d46fca2..ea82de139a 100644 --- a/src/script/api/script_cargolist.hpp +++ b/src/script/api/script_cargolist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of cargos that can be produced in the current game. + * @api ai * @ingroup ScriptList */ class ScriptCargoList : public ScriptList { @@ -27,6 +28,7 @@ public: * Creates a list of cargos that the given industry accepts. * @note This list also includes cargos that are temporarily not accepted * by this industry, @see ScriptIndustry::IsCargoAccepted. + * @api ai * @ingroup ScriptList */ class ScriptCargoList_IndustryAccepting : public ScriptList { @@ -39,6 +41,7 @@ public: /** * Creates a list of cargos that the given industry can produce. + * @api ai * @ingroup ScriptList */ class ScriptCargoList_IndustryProducing : public ScriptList { @@ -51,6 +54,7 @@ public: /** * Creates a list of cargos that the given station accepts. + * @api ai * @ingroup ScriptList */ class ScriptCargoList_StationAccepting : public ScriptList { diff --git a/src/script/api/script_company.hpp b/src/script/api/script_company.hpp index 4c35d7e9b9..051d3126a1 100644 --- a/src/script/api/script_company.hpp +++ b/src/script/api/script_company.hpp @@ -16,6 +16,7 @@ /** * Class that handles all company related functions. + * @api ai */ class ScriptCompany : public ScriptObject { public: diff --git a/src/script/api/script_controller.hpp b/src/script/api/script_controller.hpp index a027c903f3..ab8bf8893c 100644 --- a/src/script/api/script_controller.hpp +++ b/src/script/api/script_controller.hpp @@ -19,6 +19,7 @@ * The Controller, the class each Script should extend. It creates the Script, * makes sure the logic kicks in correctly, and that GetTick() has a valid * value. + * @api ai */ class ScriptController { friend class AIScanner; diff --git a/src/script/api/script_date.hpp b/src/script/api/script_date.hpp index b2cf326a94..67670e0ec0 100644 --- a/src/script/api/script_date.hpp +++ b/src/script/api/script_date.hpp @@ -16,6 +16,7 @@ /** * Class that handles all date related (calculation) functions. + * @api ai * * @note Months and days of month are 1-based; the first month of the * year is 1 and the first day of the month is also 1. diff --git a/src/script/api/script_depotlist.hpp b/src/script/api/script_depotlist.hpp index 4067fc7e60..f24be369a6 100644 --- a/src/script/api/script_depotlist.hpp +++ b/src/script/api/script_depotlist.hpp @@ -17,6 +17,7 @@ /** * Creates a list of the locations of the depots (and hangars) of which you are the owner. + * @api ai * @ingroup ScriptList */ class ScriptDepotList : public ScriptList { diff --git a/src/script/api/script_engine.hpp b/src/script/api/script_engine.hpp index b7bd9f700d..e0d286939f 100644 --- a/src/script/api/script_engine.hpp +++ b/src/script/api/script_engine.hpp @@ -18,6 +18,7 @@ /** * Class that handles all engine related functions. + * @api ai */ class ScriptEngine : public ScriptObject { public: diff --git a/src/script/api/script_enginelist.hpp b/src/script/api/script_enginelist.hpp index 5e9bb99416..78672c93ed 100644 --- a/src/script/api/script_enginelist.hpp +++ b/src/script/api/script_enginelist.hpp @@ -17,6 +17,7 @@ /** * Create a list of engines based on a vehicle type. + * @api ai * @ingroup ScriptList */ class ScriptEngineList : public ScriptList { diff --git a/src/script/api/script_error.hpp b/src/script/api/script_error.hpp index cbc74005a1..53c084fadf 100644 --- a/src/script/api/script_error.hpp +++ b/src/script/api/script_error.hpp @@ -40,6 +40,7 @@ /** * Class that handles all error related functions. + * @api ai */ class ScriptError : public ScriptObject { public: @@ -142,10 +143,9 @@ public: */ static char *GetLastErrorString(); -#ifndef EXPORT_SKIP /** * Get the error based on the OpenTTD StringID. - * @note DO NOT INVOKE THIS METHOD YOURSELF! + * @api -all * @param internal_string_id The string to convert. * @return The NoAI equivalent error message. */ @@ -153,7 +153,7 @@ public: /** * Map an internal OpenTTD error message to its NoAI equivalent. - * @note DO NOT INVOKE THIS METHOD YOURSELF! The calls are autogenerated. + * @api -all * @param internal_string_id The OpenTTD StringID used for an error. * @param ai_error_msg The NoAI equivalent error message. */ @@ -161,12 +161,11 @@ public: /** * Map an internal OpenTTD error message to its NoAI equivalent. - * @note DO NOT INVOKE THIS METHOD YOURSELF! The calls are autogenerated. + * @api -all * @param ai_error_msg The NoAI error message representation. * @param message The string representation of this error message, used for debug purposes. */ static void RegisterErrorMapString(ScriptErrorType ai_error_msg, const char *message); -#endif /* EXPORT_SKIP */ private: typedef std::mapScriptErrorMap; ///< The type for mapping between error (internal OpenTTD) StringID to the AI error type. diff --git a/src/script/api/script_event.hpp b/src/script/api/script_event.hpp index eb15ded2ee..ed76849434 100644 --- a/src/script/api/script_event.hpp +++ b/src/script/api/script_event.hpp @@ -18,6 +18,7 @@ * Class that handles all event related functions. * You can lookup the type, and than convert it to the real event-class. * That way you can request more detailed information about the event. + * @api ai */ class ScriptEvent : public ScriptObject { public: @@ -72,6 +73,7 @@ protected: /** * Class that handles all event related functions. + * @api ai * @note it is not needed to create an instance of ScriptEvent to access it, as * all members are static, and all data is stored AI-wide. */ @@ -89,20 +91,18 @@ public: */ static ScriptEvent *GetNextEvent(); -#ifndef EXPORT_SKIP /** * Insert an event to the queue for the company. * @param event The event to insert. - * @note DO NOT CALL YOURSELF; leave it to the internal AI programming. + * @api -all */ static void InsertEvent(ScriptEvent *event); /** * Free the event pointer. - * @note DO NOT CALL YOURSELF; leave it to the internal AI programming. + * @api -all */ static void FreeEventPointer(); -#endif /* EXPORT_SKIP */ private: /** diff --git a/src/script/api/script_event_types.hpp b/src/script/api/script_event_types.hpp index 163c9e54c0..c3e4a87c08 100644 --- a/src/script/api/script_event_types.hpp +++ b/src/script/api/script_event_types.hpp @@ -18,6 +18,7 @@ /** * Event Vehicle Crash, indicating a vehicle of yours is crashed. * It contains the crash site, the crashed vehicle and the reason for the crash. + * @api ai */ class ScriptEventVehicleCrashed : public ScriptEvent { public: @@ -78,6 +79,7 @@ private: /** * Event Subsidy Offered, indicating someone offered a subsidy. + * @api ai */ class ScriptEventSubsidyOffer : public ScriptEvent { public: @@ -108,6 +110,7 @@ private: /** * Event Subsidy Offer Expired, indicating a subsidy will no longer be awarded. + * @api ai */ class ScriptEventSubsidyOfferExpired : public ScriptEvent { public: @@ -138,6 +141,7 @@ private: /** * Event Subidy Awarded, indicating a subsidy is awarded to some company. + * @api ai */ class ScriptEventSubsidyAwarded : public ScriptEvent { public: @@ -168,6 +172,7 @@ private: /** * Event Subsidy Expired, indicating a route that was once subsidized no longer is. + * @api ai */ class ScriptEventSubsidyExpired : public ScriptEvent { public: @@ -200,6 +205,7 @@ private: * Event Engine Preview, indicating a manufacturer offer you to test a new engine. * You can get the same information about the offered engine as a real user * would see in the offer window. And you can also accept the offer. + * @api ai */ class ScriptEventEnginePreview : public ScriptEvent { public: @@ -288,6 +294,7 @@ private: /** * Event Company New, indicating a new company has been created. + * @api ai */ class ScriptEventCompanyNew : public ScriptEvent { public: @@ -319,6 +326,7 @@ private: /** * Event Company In Trouble, indicating a company is in trouble and might go * bankrupt soon. + * @api ai */ class ScriptEventCompanyInTrouble : public ScriptEvent { public: @@ -349,6 +357,7 @@ private: /** * Event Company Ask Merger, indicating a company can be bought (cheaply) by you. + * @api ai */ class ScriptEventCompanyAskMerger : public ScriptEvent { public: @@ -396,6 +405,7 @@ private: /** * Event Company Merger, indicating a company has been bought by another * company. + * @api ai */ class ScriptEventCompanyMerger : public ScriptEvent { public: @@ -438,6 +448,7 @@ private: /** * Event Company Bankrupt, indicating a company has gone bankrupt. + * @api ai */ class ScriptEventCompanyBankrupt : public ScriptEvent { public: @@ -468,6 +479,7 @@ private: /** * Event Vehicle Lost, indicating a vehicle can't find its way to its destination. + * @api ai */ class ScriptEventVehicleLost : public ScriptEvent { public: @@ -498,6 +510,7 @@ private: /** * Event VehicleWaitingInDepot, indicating a vehicle has arrived a depot and is now waiting there. + * @api ai */ class ScriptEventVehicleWaitingInDepot : public ScriptEvent { public: @@ -528,6 +541,7 @@ private: /** * Event Vehicle Unprofitable, indicating a vehicle lost money last year. + * @api ai */ class ScriptEventVehicleUnprofitable : public ScriptEvent { public: @@ -558,6 +572,7 @@ private: /** * Event Industry Open, indicating a new industry has been created. + * @api ai */ class ScriptEventIndustryOpen : public ScriptEvent { public: @@ -588,6 +603,7 @@ private: /** * Event Industry Close, indicating an industry is going to be closed. + * @api ai */ class ScriptEventIndustryClose : public ScriptEvent { public: @@ -618,6 +634,7 @@ private: /** * Event Engine Available, indicating a new engine is available. + * @api ai */ class ScriptEventEngineAvailable : public ScriptEvent { public: @@ -648,6 +665,7 @@ private: /** * Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time. + * @api ai */ class ScriptEventStationFirstVehicle : public ScriptEvent { public: @@ -687,6 +705,7 @@ private: /** * Event Disaster Zeppeliner Crashed, indicating a zeppeliner has crashed on an airport and is blocking the runway. + * @api ai */ class ScriptEventDisasterZeppelinerCrashed : public ScriptEvent { public: @@ -717,6 +736,7 @@ private: /** * Event Disaster Zeppeliner Cleared, indicating a previously crashed zeppeliner has been removed, and the airport is operating again. + * @api ai */ class ScriptEventDisasterZeppelinerCleared : public ScriptEvent { public: @@ -747,6 +767,7 @@ private: /** * Event Town Founded, indicating a new town has been created. + * @api ai */ class ScriptEventTownFounded : public ScriptEvent { public: diff --git a/src/script/api/script_execmode.hpp b/src/script/api/script_execmode.hpp index a3ce70d68d..5fe5853afb 100644 --- a/src/script/api/script_execmode.hpp +++ b/src/script/api/script_execmode.hpp @@ -20,6 +20,7 @@ * Execute. The original mode is stored and recovered from when ever the * instance is destroyed. * In Execute mode all commands you do are executed for real. + * @api ai */ class ScriptExecMode : public ScriptObject { private: diff --git a/src/script/api/script_gamesettings.hpp b/src/script/api/script_gamesettings.hpp index 8643df5de5..4cf85c00f7 100644 --- a/src/script/api/script_gamesettings.hpp +++ b/src/script/api/script_gamesettings.hpp @@ -16,6 +16,7 @@ /** * Class that handles all game settings related functions. + * @api ai * * @note ScriptGameSettings::IsValid and ScriptGameSettings::GetValue are functions * that rely on the settings as OpenTTD stores them in savegame and diff --git a/src/script/api/script_group.hpp b/src/script/api/script_group.hpp index 3eb3e06cab..8688ee328f 100644 --- a/src/script/api/script_group.hpp +++ b/src/script/api/script_group.hpp @@ -16,6 +16,7 @@ /** * Class that handles all group related functions. + * @api ai */ class ScriptGroup : public ScriptObject { public: diff --git a/src/script/api/script_grouplist.hpp b/src/script/api/script_grouplist.hpp index 6ce66c16cd..32e94d6494 100644 --- a/src/script/api/script_grouplist.hpp +++ b/src/script/api/script_grouplist.hpp @@ -17,6 +17,7 @@ /** * Creates a list of groups of which you are the owner. * @note Neither ScriptGroup::GROUP_ALL nor ScriptGroup::GROUP_DEFAULT is in this list. + * @api ai * @ingroup ScriptList */ class ScriptGroupList : public ScriptList { diff --git a/src/script/api/script_industry.hpp b/src/script/api/script_industry.hpp index 747d290612..cd739c29eb 100644 --- a/src/script/api/script_industry.hpp +++ b/src/script/api/script_industry.hpp @@ -16,6 +16,7 @@ /** * Class that handles all industry related functions. + * @api ai */ class ScriptIndustry : public ScriptObject { public: diff --git a/src/script/api/script_industrylist.hpp b/src/script/api/script_industrylist.hpp index f36d72d06c..c88ffd7cf0 100644 --- a/src/script/api/script_industrylist.hpp +++ b/src/script/api/script_industrylist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of industries that are currently on the map. + * @api ai * @ingroup ScriptList */ class ScriptIndustryList : public ScriptList { @@ -25,6 +26,7 @@ public: /** * Creates a list of industries that accepts a given cargo. + * @api ai * @ingroup ScriptList */ class ScriptIndustryList_CargoAccepting : public ScriptList { @@ -38,6 +40,7 @@ public: /** * Creates a list of industries that can produce a given cargo. * @note It also contains industries that currently produces 0 units of the cargo. + * @api ai * @ingroup ScriptList */ class ScriptIndustryList_CargoProducing : public ScriptList { diff --git a/src/script/api/script_industrytype.hpp b/src/script/api/script_industrytype.hpp index a8ee5aef3e..185d0289cc 100644 --- a/src/script/api/script_industrytype.hpp +++ b/src/script/api/script_industrytype.hpp @@ -16,6 +16,7 @@ /** * Class that handles all industry-type related functions. + * @api ai */ class ScriptIndustryType : public ScriptObject { public: diff --git a/src/script/api/script_industrytypelist.hpp b/src/script/api/script_industrytypelist.hpp index bc3676da16..8a64f838a9 100644 --- a/src/script/api/script_industrytypelist.hpp +++ b/src/script/api/script_industrytypelist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of valid industry types. + * @api ai * @ingroup ScriptList */ class ScriptIndustryTypeList : public ScriptList { diff --git a/src/script/api/script_list.hpp b/src/script/api/script_list.hpp index 75dc7ac699..c38315763b 100644 --- a/src/script/api/script_list.hpp +++ b/src/script/api/script_list.hpp @@ -21,6 +21,7 @@ class ScriptListSorter; /** * Class that creates a list which can keep item/value pairs, which you can walk. + * @api ai */ class ScriptList : public ScriptObject { public: diff --git a/src/script/api/script_log.hpp b/src/script/api/script_log.hpp index ba5a5f025c..a3a1cd9bff 100644 --- a/src/script/api/script_log.hpp +++ b/src/script/api/script_log.hpp @@ -16,6 +16,7 @@ /** * Class that handles all log related functions. + * @api ai */ class ScriptLog : public ScriptObject { /* ScriptController needs access to Enum and Log, in order to keep the flow from @@ -23,10 +24,10 @@ class ScriptLog : public ScriptObject { friend class ScriptController; public: -#ifndef EXPORT_SKIP /** * Log levels; The value is also feed to DEBUG() lvl. * This has no use for you, as AI writer. + * @api -all */ enum ScriptLogType { LOG_SQ_ERROR = 0, ///< Squirrel printed an error. @@ -39,6 +40,7 @@ public: /** * Internal representation of the log-data inside the AI. * This has no use for you, as AI writer. + * @api -all */ struct LogData { char **lines; ///< The log-lines. @@ -47,7 +49,6 @@ public: int pos; ///< Current position in lines. int used; ///< Total amount of used log-lines. }; -#endif /* EXPORT_SKIP */ /** * Print an Info message to the logs. @@ -67,13 +68,11 @@ public: */ static void Error(const char *message); -#ifndef EXPORT_SKIP /** * Free the log pointer. - * @note DO NOT CALL YOURSELF; leave it to the internal AI programming. + * @api -all */ static void FreeLogPointer(); -#endif /* EXPORT_SKIP */ private: /** diff --git a/src/script/api/script_map.hpp b/src/script/api/script_map.hpp index bb944952c2..db91585e75 100644 --- a/src/script/api/script_map.hpp +++ b/src/script/api/script_map.hpp @@ -17,6 +17,7 @@ /** * Class that handles all map related functions. + * @api ai */ class ScriptMap : public ScriptObject { public: diff --git a/src/script/api/script_marine.hpp b/src/script/api/script_marine.hpp index 93776159b9..97e1fd6d4a 100644 --- a/src/script/api/script_marine.hpp +++ b/src/script/api/script_marine.hpp @@ -16,6 +16,7 @@ /** * Class that handles all marine related functions. + * @api ai */ class ScriptMarine : public ScriptObject { public: diff --git a/src/script/api/script_object.hpp b/src/script/api/script_object.hpp index 6e6e96d8b4..d9ccd8fba1 100644 --- a/src/script/api/script_object.hpp +++ b/src/script/api/script_object.hpp @@ -29,10 +29,10 @@ typedef bool (ScriptModeProc)(); * your script, as it doesn't publish any public functions. It is used * internally to have a common place to handle general things, like internal * command processing, and command-validation checks. + * @api none */ class ScriptObject : public SimpleCountedObject { friend class ScriptInstance; -#ifndef DOXYGEN_AI_DOCS protected: /** * A class that handles the current active instance. By instantiating it at @@ -239,7 +239,6 @@ private: * @param group_id The new GroupID. */ static void SetNewGroupID(GroupID group_id); -#endif /* DOXYGEN_AI_DOCS */ }; #endif /* SCRIPT_OBJECT_HPP */ diff --git a/src/script/api/script_order.hpp b/src/script/api/script_order.hpp index ca92d41fc4..5cf08f74be 100644 --- a/src/script/api/script_order.hpp +++ b/src/script/api/script_order.hpp @@ -16,6 +16,7 @@ /** * Class that handles all order related functions. + * @api ai */ class ScriptOrder : public ScriptObject { public: diff --git a/src/script/api/script_rail.hpp b/src/script/api/script_rail.hpp index 0fac99a740..b7d7db9236 100644 --- a/src/script/api/script_rail.hpp +++ b/src/script/api/script_rail.hpp @@ -16,6 +16,7 @@ /** * Class that handles all rail related functions. + * @api ai */ class ScriptRail : public ScriptObject { public: diff --git a/src/script/api/script_railtypelist.hpp b/src/script/api/script_railtypelist.hpp index 7a662e2fd0..723f1452d4 100644 --- a/src/script/api/script_railtypelist.hpp +++ b/src/script/api/script_railtypelist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of all available railtypes. + * @api ai * @ingroup ScriptList */ class ScriptRailTypeList : public ScriptList { diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp index 87a0499299..1139adafb5 100644 --- a/src/script/api/script_road.hpp +++ b/src/script/api/script_road.hpp @@ -16,6 +16,7 @@ /** * Class that handles all road related functions. + * @api ai */ class ScriptRoad : public ScriptObject { public: diff --git a/src/script/api/script_sign.hpp b/src/script/api/script_sign.hpp index 81ab353602..a4f2ba0b2b 100644 --- a/src/script/api/script_sign.hpp +++ b/src/script/api/script_sign.hpp @@ -16,6 +16,7 @@ /** * Class that handles all sign related functions. + * @api ai */ class ScriptSign : public ScriptObject { public: diff --git a/src/script/api/script_signlist.hpp b/src/script/api/script_signlist.hpp index 5540e269df..7d97036298 100644 --- a/src/script/api/script_signlist.hpp +++ b/src/script/api/script_signlist.hpp @@ -16,6 +16,7 @@ /** * Create a list of signs your company has created. + * @api ai * @ingroup ScriptList */ class ScriptSignList : public ScriptList { diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp index 0d013708a3..29896681c2 100644 --- a/src/script/api/script_station.hpp +++ b/src/script/api/script_station.hpp @@ -17,6 +17,7 @@ /** * Class that handles all station related functions. + * @api ai */ class ScriptStation : public ScriptBaseStation { public: diff --git a/src/script/api/script_stationlist.hpp b/src/script/api/script_stationlist.hpp index 84d509d2ef..49269d29f1 100644 --- a/src/script/api/script_stationlist.hpp +++ b/src/script/api/script_stationlist.hpp @@ -17,6 +17,7 @@ /** * Creates a list of stations of which you are the owner. + * @api ai * @ingroup ScriptList */ class ScriptStationList : public ScriptList { @@ -29,6 +30,7 @@ public: /** * Creates a list of stations which the vehicle has in its orders. + * @api ai * @ingroup ScriptList */ class ScriptStationList_Vehicle : public ScriptList { diff --git a/src/script/api/script_subsidy.hpp b/src/script/api/script_subsidy.hpp index f9b397774b..674b0e14d2 100644 --- a/src/script/api/script_subsidy.hpp +++ b/src/script/api/script_subsidy.hpp @@ -16,6 +16,7 @@ /** * Class that handles all subsidy related functions. + * @api ai */ class ScriptSubsidy : public ScriptObject { public: diff --git a/src/script/api/script_subsidylist.hpp b/src/script/api/script_subsidylist.hpp index 254446ca70..05342df2eb 100644 --- a/src/script/api/script_subsidylist.hpp +++ b/src/script/api/script_subsidylist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of all current subsidies. + * @api ai * @ingroup ScriptList */ class ScriptSubsidyList : public ScriptList { diff --git a/src/script/api/script_testmode.hpp b/src/script/api/script_testmode.hpp index a1b9e6bbf3..a447ed8146 100644 --- a/src/script/api/script_testmode.hpp +++ b/src/script/api/script_testmode.hpp @@ -22,6 +22,7 @@ * In Test mode all the commands you execute aren't really executed. The * system only checks if it would be able to execute your requests, and what * the cost would be. + * @api ai */ class ScriptTestMode : public ScriptObject { private: diff --git a/src/script/api/script_tile.hpp b/src/script/api/script_tile.hpp index 38ec6a55ee..f1d40529a0 100644 --- a/src/script/api/script_tile.hpp +++ b/src/script/api/script_tile.hpp @@ -17,6 +17,7 @@ /** * Class that handles all tile related functions. + * @api ai */ class ScriptTile : public ScriptObject { public: diff --git a/src/script/api/script_tilelist.hpp b/src/script/api/script_tilelist.hpp index e9daacc5d8..990237c4ff 100644 --- a/src/script/api/script_tilelist.hpp +++ b/src/script/api/script_tilelist.hpp @@ -17,6 +17,7 @@ /** * Creates an empty list, in which you can add tiles. + * @api ai * @ingroup ScriptList */ class ScriptTileList : public ScriptList { @@ -57,6 +58,7 @@ public: /** * Creates a list of tiles that will accept cargo for the given industry. * @note If a simular industry is close, it might happen that this industry receives the cargo. + * @api ai * @ingroup ScriptList */ class ScriptTileList_IndustryAccepting : public ScriptTileList { @@ -73,6 +75,7 @@ public: /** * Creates a list of tiles which the industry checks to see if a station is * there to receive cargo produced by this industry. + * @api ai * @ingroup ScriptList */ class ScriptTileList_IndustryProducing : public ScriptTileList { @@ -89,6 +92,7 @@ public: /** * Creates a list of tiles which have the requested StationType of the * StationID. + * @api ai * @ingroup ScriptList */ class ScriptTileList_StationType : public ScriptTileList { diff --git a/src/script/api/script_town.hpp b/src/script/api/script_town.hpp index ceddacacaf..83da1d7967 100644 --- a/src/script/api/script_town.hpp +++ b/src/script/api/script_town.hpp @@ -17,6 +17,7 @@ /** * Class that handles all town related functions. + * @api ai */ class ScriptTown : public ScriptObject { public: diff --git a/src/script/api/script_townlist.hpp b/src/script/api/script_townlist.hpp index 4923df8de1..f26e534019 100644 --- a/src/script/api/script_townlist.hpp +++ b/src/script/api/script_townlist.hpp @@ -16,6 +16,7 @@ /** * Creates a list of towns that are currently on the map. + * @api ai * @ingroup ScriptList */ class ScriptTownList : public ScriptList { @@ -25,6 +26,7 @@ public: /** * Creates a list of all TownEffects known in the game. + * @api ai * @ingroup ScriptList */ class ScriptTownEffectList : public ScriptList { diff --git a/src/script/api/script_tunnel.hpp b/src/script/api/script_tunnel.hpp index 3a6ec7b55f..5ca9ee8b3c 100644 --- a/src/script/api/script_tunnel.hpp +++ b/src/script/api/script_tunnel.hpp @@ -16,6 +16,7 @@ /** * Class that handles all tunnel related functions. + * @api ai */ class ScriptTunnel : public ScriptObject { public: diff --git a/src/script/api/script_vehicle.hpp b/src/script/api/script_vehicle.hpp index 168bac437e..024192b4d9 100644 --- a/src/script/api/script_vehicle.hpp +++ b/src/script/api/script_vehicle.hpp @@ -16,6 +16,7 @@ /** * Class that handles all vehicle related functions. + * @api ai */ class ScriptVehicle : public ScriptObject { public: diff --git a/src/script/api/script_vehiclelist.hpp b/src/script/api/script_vehiclelist.hpp index b4f0204eab..9ede0ec48f 100644 --- a/src/script/api/script_vehiclelist.hpp +++ b/src/script/api/script_vehiclelist.hpp @@ -17,6 +17,7 @@ /** * Creates a list of vehicles of which you are the owner. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList : public ScriptList { @@ -26,6 +27,7 @@ public: /** * Creates a list of vehicles that have orders to a given station. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList_Station : public ScriptList { @@ -43,6 +45,7 @@ public: * aircraft having a depot order on a hangar of that airport will be * returned. For all other vehicle types the tile has to be a depot or * an empty list will be returned. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList_Depot : public ScriptList { @@ -55,6 +58,7 @@ public: /** * Creates a list of vehicles that share orders. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList_SharedOrders : public ScriptList { @@ -67,6 +71,7 @@ public: /** * Creates a list of vehicles that are in a group. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList_Group : public ScriptList { @@ -79,6 +84,7 @@ public: /** * Creates a list of vehicles that are in the default group. + * @api ai * @ingroup ScriptList */ class ScriptVehicleList_DefaultGroup : public ScriptList { diff --git a/src/script/api/script_waypoint.hpp b/src/script/api/script_waypoint.hpp index e0224fa7b8..645cc2dafd 100644 --- a/src/script/api/script_waypoint.hpp +++ b/src/script/api/script_waypoint.hpp @@ -16,6 +16,7 @@ /** * Class that handles all waypoint related functions. + * @api ai */ class ScriptWaypoint : public ScriptBaseStation { public: diff --git a/src/script/api/script_waypointlist.hpp b/src/script/api/script_waypointlist.hpp index 8670879cb2..18afbb8c8d 100644 --- a/src/script/api/script_waypointlist.hpp +++ b/src/script/api/script_waypointlist.hpp @@ -17,6 +17,7 @@ /** * Creates a list of waypoints of which you are the owner. + * @api ai * @ingroup ScriptList */ class ScriptWaypointList : public ScriptList { @@ -29,6 +30,7 @@ public: /** * Creates a list of waypoints which the vehicle has in its orders. + * @api ai * @ingroup ScriptList */ class ScriptWaypointList_Vehicle : public ScriptList {