summaryrefslogtreecommitdiff
path: root/src/ai/ai_info_dummy.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-07-31 22:16:34 +0000
committeryexo <yexo@openttd.org>2010-07-31 22:16:34 +0000
commit6d4900ed7c1631c40aec59cab9c11881107456a5 (patch)
tree7e3bc6a621693ec52811f4bf50de8756f5db30dc /src/ai/ai_info_dummy.cpp
parent5b20472ccbae53f70e7528ecb7322c92690cffef (diff)
downloadopenttd-6d4900ed7c1631c40aec59cab9c11881107456a5.tar.xz
(svn r20271) -Doc: add doxygen comments to several items under src/ai/
Diffstat (limited to 'src/ai/ai_info_dummy.cpp')
-rw-r--r--src/ai/ai_info_dummy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ai/ai_info_dummy.cpp b/src/ai/ai_info_dummy.cpp
index f38832310..f706110f7 100644
--- a/src/ai/ai_info_dummy.cpp
+++ b/src/ai/ai_info_dummy.cpp
@@ -25,6 +25,7 @@
* to select manual. It is a fail-over in case no AIs are available.
*/
+/** info.nut for the dummy AI. */
const SQChar _dummy_script_info[] = _SC(" \n\
class DummyAI extends AIInfo { \n\
function GetAuthor() { return \"OpenTTD NoAI Developers Team\"; } \n\
@@ -39,6 +40,7 @@ class DummyAI extends AIInfo {
RegisterDummyAI(DummyAI()); \n\
");
+/** Run the dummy info.nut. */
void AI_CreateAIInfoDummy(HSQUIRRELVM vm)
{
sq_pushroottable(vm);
@@ -54,6 +56,7 @@ void AI_CreateAIInfoDummy(HSQUIRRELVM vm)
NOT_REACHED();
}
+/** Run the dummy AI and let it generate an error message. */
void AI_CreateAIDummy(HSQUIRRELVM vm)
{
/* We want to translate the error message.