# ai_info_docs.hpp

Go to the documentation of this file.

    00001 /* $Id$ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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 <http://www.gnu.org/licenses/>.
    00008  */
    00009
    00012 /* This file exists purely for doxygen purposes. */
    00013 #ifdef DOXYGEN_SKIP
    00014
    00025 class AIInfo {
    00026 public:
    00033   string GetAuthor();
    00034
    00045   string GetName();
    00046
    00061   string GetShortName();
    00062
    00069   string GetDescription();
    00070
    00084   int GetVersion();
    00085
    00098   int MinVersionToLoad();
    00099
    00109   string GetDate();
    00110
    00126   bool UseAsRandomAI();
    00127
    00135   string CreateInstance();
    00136
    00156   string GetAPIVersion();
    00157
    00170   string GetURL();
    00171
    00180   void GetSettings();
    00181
    00183   enum AIConfigFlags {
    00184     AICONFIG_NONE,
    00185     AICONFIG_RANDOM,
    00186     AICONFIG_BOOLEAN,
    00187   };
    00188
    00220   void AddSetting(table setting_description);
    00221
    00238   void AddLabels(const char *setting_name, table value_names);
    00239 };
    00240 #endif