diff options
author | yexo <yexo@openttd.org> | 2010-07-31 22:16:34 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-07-31 22:16:34 +0000 |
commit | 6d4900ed7c1631c40aec59cab9c11881107456a5 (patch) | |
tree | 7e3bc6a621693ec52811f4bf50de8756f5db30dc /src/ai/ai_instance.cpp | |
parent | 5b20472ccbae53f70e7528ecb7322c92690cffef (diff) | |
download | openttd-6d4900ed7c1631c40aec59cab9c11881107456a5.tar.xz |
(svn r20271) -Doc: add doxygen comments to several items under src/ai/
Diffstat (limited to 'src/ai/ai_instance.cpp')
-rw-r--r-- | src/ai/ai_instance.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 4a0924995..a1dc69d07 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -87,6 +87,11 @@ AIStorage::~AIStorage() if (log_data != NULL) AILog::FreeLogPointer(); } +/** + * Callback called by squirrel when an AI uses "print" and for error messages. + * @param error_msg Is this an error message? + * @param message The actual message text. + */ static void PrintFunc(bool error_msg, const SQChar *message) { /* Convert to OpenTTD internal capable string */ @@ -453,8 +458,9 @@ enum SQSaveLoadType { SQSL_ARRAY_TABLE_END = 0xFF, ///< Marks the end of an array or table, no data follows. }; -static byte _ai_sl_byte; +static byte _ai_sl_byte; //!< Used as source/target by the AI saveload code to store/load a single byte. +/** SaveLoad array that saves/loads exactly one byte. */ static const SaveLoad _ai_byte[] = { SLEG_VAR(_ai_sl_byte, SLE_UINT8), SLE_END() |