Chunnel: Use hash table for tunnel search, change tunnel fields and savegame format.
[openttd-joker.git] / bin / ai / compat_1.0.nut
blob5e7dd441f66a55a4a1a976b4ce4f81a480625c1a
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
10 AILog.Info("1.0 API compatibility in effect.");
12 AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation;
13 AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id)
15 if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
17 return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id);
20 AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation;
21 AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id)
23 if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false;
25 return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id);
28 AIBridgeList.HasNext <-
29 AIBridgeList_Length.HasNext <-
30 AICargoList.HasNext <-
31 AICargoList_IndustryAccepting.HasNext <-
32 AICargoList_IndustryProducing.HasNext <-
33 AIDepotList.HasNext <-
34 AIEngineList.HasNext <-
35 AIGroupList.HasNext <-
36 AIIndustryList.HasNext <-
37 AIIndustryList_CargoAccepting.HasNext <-
38 AIIndustryList_CargoProducing.HasNext <-
39 AIIndustryTypeList.HasNext <-
40 AIList.HasNext <-
41 AIRailTypeList.HasNext <-
42 AISignList.HasNext <-
43 AIStationList.HasNext <-
44 AIStationList_Vehicle.HasNext <-
45 AISubsidyList.HasNext <-
46 AITileList.HasNext <-
47 AITileList_IndustryAccepting.HasNext <-
48 AITileList_IndustryProducing.HasNext <-
49 AITileList_StationType.HasNext <-
50 AITownList.HasNext <-
51 AIVehicleList.HasNext <-
52 AIVehicleList_DefaultGroup.HasNext <-
53 AIVehicleList_Depot.HasNext <-
54 AIVehicleList_Group.HasNext <-
55 AIVehicleList_SharedOrders.HasNext <-
56 AIVehicleList_Station.HasNext <-
57 AIWaypointList.HasNext <-
58 AIWaypointList_Vehicle.HasNext <-
59 function()
61 return !this.IsEnd();
64 AIIndustry._IsCargoAccepted <- AIIndustry.IsCargoAccepted;
65 AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id)
67 return AIIndustry._IsCargoAccepted(industry_id, cargo_id) != AIIndustry.CAS_NOT_ACCEPTED;
70 AIAbstractList <- AIList;
72 AIList.ChangeItem <- AIList.SetValue;
74 AIRail.ERR_NONUNIFORM_STATIONS_DISABLED <- 0xFFFF;
76 AICompany.GetCompanyValue <- function(company)
78 return AICompany.GetQuarterlyCompanyValue(company, AICompany.CURRENT_QUARTER);
81 AITown.GetLastMonthTransported <- AITown.GetLastMonthSupplied;
83 AIEvent.AI_ET_INVALID <- AIEvent.ET_INVALID;
84 AIEvent.AI_ET_TEST <- AIEvent.ET_TEST;
85 AIEvent.AI_ET_SUBSIDY_OFFER <- AIEvent.ET_SUBSIDY_OFFER;
86 AIEvent.AI_ET_SUBSIDY_OFFER_EXPIRED <- AIEvent.ET_SUBSIDY_OFFER_EXPIRED;
87 AIEvent.AI_ET_SUBSIDY_AWARDED <- AIEvent.ET_SUBSIDY_AWARDED;
88 AIEvent.AI_ET_SUBSIDY_EXPIRED <- AIEvent.ET_SUBSIDY_EXPIRED;
89 AIEvent.AI_ET_ENGINE_PREVIEW <- AIEvent.ET_ENGINE_PREVIEW;
90 AIEvent.AI_ET_COMPANY_NEW <- AIEvent.ET_COMPANY_NEW;
91 AIEvent.AI_ET_COMPANY_IN_TROUBLE <- AIEvent.ET_COMPANY_IN_TROUBLE;
92 AIEvent.AI_ET_COMPANY_ASK_MERGER <- AIEvent.ET_COMPANY_ASK_MERGER;
93 AIEvent.AI_ET_COMPANY_MERGER <- AIEvent.ET_COMPANY_MERGER;
94 AIEvent.AI_ET_COMPANY_BANKRUPT <- AIEvent.ET_COMPANY_BANKRUPT;
95 AIEvent.AI_ET_VEHICLE_CRASHED <- AIEvent.ET_VEHICLE_CRASHED;
96 AIEvent.AI_ET_VEHICLE_LOST <- AIEvent.ET_VEHICLE_LOST;
97 AIEvent.AI_ET_VEHICLE_WAITING_IN_DEPOT <- AIEvent.ET_VEHICLE_WAITING_IN_DEPOT;
98 AIEvent.AI_ET_VEHICLE_UNPROFITABLE <- AIEvent.ET_VEHICLE_UNPROFITABLE;
99 AIEvent.AI_ET_INDUSTRY_OPEN <- AIEvent.ET_INDUSTRY_OPEN;
100 AIEvent.AI_ET_INDUSTRY_CLOSE <- AIEvent.ET_INDUSTRY_CLOSE;
101 AIEvent.AI_ET_ENGINE_AVAILABLE <- AIEvent.ET_ENGINE_AVAILABLE;
102 AIEvent.AI_ET_STATION_FIRST_VEHICLE <- AIEvent.ET_STATION_FIRST_VEHICLE;
103 AIEvent.AI_ET_DISASTER_ZEPPELINER_CRASHED <- AIEvent.ET_DISASTER_ZEPPELINER_CRASHED;
104 AIEvent.AI_ET_DISASTER_ZEPPELINER_CLEARED <- AIEvent.ET_DISASTER_ZEPPELINER_CLEARED;
105 AIOrder.AIOF_NONE <- AIOrder.OF_NONE
106 AIOrder.AIOF_NON_STOP_INTERMEDIATE <- AIOrder.OF_NON_STOP_INTERMEDIATE
107 AIOrder.AIOF_NON_STOP_DESTINATION <- AIOrder.OF_NON_STOP_DESTINATION
108 AIOrder.AIOF_UNLOAD <- AIOrder.OF_UNLOAD
109 AIOrder.AIOF_TRANSFER <- AIOrder.OF_TRANSFER
110 AIOrder.AIOF_NO_UNLOAD <- AIOrder.OF_NO_UNLOAD
111 AIOrder.AIOF_FULL_LOAD <- AIOrder.OF_FULL_LOAD
112 AIOrder.AIOF_FULL_LOAD_ANY <- AIOrder.OF_FULL_LOAD_ANY
113 AIOrder.AIOF_NO_LOAD <- AIOrder.OF_NO_LOAD
114 AIOrder.AIOF_SERVICE_IF_NEEDED <- AIOrder.OF_SERVICE_IF_NEEDED
115 AIOrder.AIOF_STOP_IN_DEPOT <- AIOrder.OF_STOP_IN_DEPOT
116 AIOrder.AIOF_GOTO_NEAREST_DEPOT <- AIOrder.OF_GOTO_NEAREST_DEPOT
117 AIOrder.AIOF_NON_STOP_FLAGS <- AIOrder.OF_NON_STOP_FLAGS
118 AIOrder.AIOF_UNLOAD_FLAGS <- AIOrder.OF_UNLOAD_FLAGS
119 AIOrder.AIOF_LOAD_FLAGS <- AIOrder.OF_LOAD_FLAGS
120 AIOrder.AIOF_DEPOT_FLAGS <- AIOrder.OF_DEPOT_FLAGS
121 AIOrder.AIOF_INVALID <- AIOrder.OF_INVALID