# ai_info_docs.hpp

Go to the documentation of this file.

    00001 /* $Id: ai_info_docs.hpp 17629 2009-09-24 19:22:32Z rubidium $ */
    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
    00155   string GetAPIVersion();
    00156
    00169   string GetURL();
    00170
    00179   void GetSettings();
    00180
    00182   enum AIConfigFlags {
    00183     AICONFIG_NONE,
    00184     AICONFIG_RANDOM,
    00185     AICONFIG_BOOLEAN,
    00186   };
    00187
    00219   void AddSetting(table setting_description);
    00220
    00237   void AddLabels(const char *setting_name, table value_names);
    00238 };
    00239 #endif