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 00027 class ScriptInfo { 00028 public: 00035 string GetAuthor(); 00036 00047 string GetName(); 00048 00063 string GetShortName(); 00064 00071 string GetDescription(); 00072 00086 int GetVersion(); 00087 00100 int MinVersionToLoad(); 00101 00111 string GetDate(); 00112 00130 bool UseAsRandomAI(); 00131 00139 string CreateInstance(); 00140 00162 string GetAPIVersion(); 00163 00176 string GetURL(); 00177 00186 void GetSettings(); 00187 00189 enum ScriptConfigFlags { 00190 CONFIG_NONE, 00191 CONFIG_RANDOM, 00192 CONFIG_BOOLEAN, 00193 CONFIG_INGAME, 00194 CONFIG_DEVELOPER, 00195 }; 00196 00228 void AddSetting(table setting_description); 00229 00246 void AddLabels(const char *setting_name, table value_names); 00247 };