Loading

Paste #pvv7tf0wi

  1. /*
  2.  * This file is part of SynTrans, which is an AI for OpenTTD
  3.  *
  4.  * SynTrans is free software; you can redistribute it and/or modify it
  5.  * under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; version 2 of the License
  7.  *
  8.  * SynTrans is distributed in the hope that it will be useful,
  9.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  * GNU General Public License for more details.
  12.  *
  13.  * You should have received a copy of the GNU General Public License
  14.  * along with SynTrans; If not, see <http://www.gnu.org/licenses/> or
  15.  * write to the Free Software Foundation, Inc., 51 Franklin Street,
  16.  * Fifth Floor, Boston, MA 02110-1301 USA.
  17.  *
  18.  */
  19.  
  20.  class SynTrans extends AIInfo {
  21.     function GetAuthor()      { return "11Runner"; }
  22.     function GetName()        { return "SynTrans"; }
  23.     function GetShortName()   { return "SNTS"; }
  24.     function GetDescription() { return "SynTrans is an AI which its name stands for 'Synaptic Transportation'.  It builds a massive, rapidly expanding road and air networks!"; }
  25.     function GetAPIVersion()  { return "1.2"; }
  26.     function GetVersion()     { return 15; }
  27.     function GetDate()        { return "2011-10-14"; }
  28.     function GetUrl()         { return "http://www.tt-forums.net/viewtopic.php?f=65&t=57136"; }
  29.     function CreateInstance() { return "SynTrans"; }
  30.    
  31.     function MinVersionToLoad() { return 1; }
  32.  
  33.     function GetSettings() {
  34.         AddSetting({name = "log_level", description = "The amount of AI messages to display in the AI log.  Higher=More messages", easy_value = 2, medium_value = 2, hard_value = 2, custom_value = 2, min_value = 1, max_value = 3, flags = CONFIG_INGAME | CONFIG_DEVELOPER });
  35.         AddSetting({name = "route_distance", description = "The distance of the vehicle routes built by SynTrans", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, min_value = 1, max_value = 3, flags = 0});
  36.         AddLabels("route_distance", {
  37.             _1 = "Short",
  38.             _2 = "Medium",
  39.             _3 = "Long"
  40.         });
  41.     }
  42.  
  43. }
  44.  
  45. /* Tell the core we are an AI */
  46. RegisterAI(SynTrans());

Comments