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/>.
10 AILog
.Info("1.1 API compatibility in effect.");
12 AICompany
.GetCompanyValue
<- function(company
)
14 return AICompany
.GetQuarterlyCompanyValue(company
, AICompany
.CURRENT_QUARTER
);
17 AITown
.GetLastMonthTransported
<- AITown
.GetLastMonthSupplied
;
19 AIEvent
.AI_ET_INVALID
<- AIEvent
.ET_INVALID
;
20 AIEvent
.AI_ET_TEST
<- AIEvent
.ET_TEST
;
21 AIEvent
.AI_ET_SUBSIDY_OFFER
<- AIEvent
.ET_SUBSIDY_OFFER
;
22 AIEvent
.AI_ET_SUBSIDY_OFFER_EXPIRED
<- AIEvent
.ET_SUBSIDY_OFFER_EXPIRED
;
23 AIEvent
.AI_ET_SUBSIDY_AWARDED
<- AIEvent
.ET_SUBSIDY_AWARDED
;
24 AIEvent
.AI_ET_SUBSIDY_EXPIRED
<- AIEvent
.ET_SUBSIDY_EXPIRED
;
25 AIEvent
.AI_ET_ENGINE_PREVIEW
<- AIEvent
.ET_ENGINE_PREVIEW
;
26 AIEvent
.AI_ET_COMPANY_NEW
<- AIEvent
.ET_COMPANY_NEW
;
27 AIEvent
.AI_ET_COMPANY_IN_TROUBLE
<- AIEvent
.ET_COMPANY_IN_TROUBLE
;
28 AIEvent
.AI_ET_COMPANY_ASK_MERGER
<- AIEvent
.ET_COMPANY_ASK_MERGER
;
29 AIEvent
.AI_ET_COMPANY_MERGER
<- AIEvent
.ET_COMPANY_MERGER
;
30 AIEvent
.AI_ET_COMPANY_BANKRUPT
<- AIEvent
.ET_COMPANY_BANKRUPT
;
31 AIEvent
.AI_ET_VEHICLE_CRASHED
<- AIEvent
.ET_VEHICLE_CRASHED
;
32 AIEvent
.AI_ET_VEHICLE_LOST
<- AIEvent
.ET_VEHICLE_LOST
;
33 AIEvent
.AI_ET_VEHICLE_WAITING_IN_DEPOT
<- AIEvent
.ET_VEHICLE_WAITING_IN_DEPOT
;
34 AIEvent
.AI_ET_VEHICLE_UNPROFITABLE
<- AIEvent
.ET_VEHICLE_UNPROFITABLE
;
35 AIEvent
.AI_ET_INDUSTRY_OPEN
<- AIEvent
.ET_INDUSTRY_OPEN
;
36 AIEvent
.AI_ET_INDUSTRY_CLOSE
<- AIEvent
.ET_INDUSTRY_CLOSE
;
37 AIEvent
.AI_ET_ENGINE_AVAILABLE
<- AIEvent
.ET_ENGINE_AVAILABLE
;
38 AIEvent
.AI_ET_STATION_FIRST_VEHICLE
<- AIEvent
.ET_STATION_FIRST_VEHICLE
;
39 AIEvent
.AI_ET_DISASTER_ZEPPELINER_CRASHED
<- AIEvent
.ET_DISASTER_ZEPPELINER_CRASHED
;
40 AIEvent
.AI_ET_DISASTER_ZEPPELINER_CLEARED
<- AIEvent
.ET_DISASTER_ZEPPELINER_CLEARED
;
41 AIEvent
.AI_ET_TOWN_FOUNDED
<- AIEvent
.ET_TOWN_FOUNDED
;
42 AIOrder
.AIOF_NONE
<- AIOrder
.OF_NONE
43 AIOrder
.AIOF_NON_STOP_INTERMEDIATE
<- AIOrder
.OF_NON_STOP_INTERMEDIATE
44 AIOrder
.AIOF_NON_STOP_DESTINATION
<- AIOrder
.OF_NON_STOP_DESTINATION
45 AIOrder
.AIOF_UNLOAD
<- AIOrder
.OF_UNLOAD
46 AIOrder
.AIOF_TRANSFER
<- AIOrder
.OF_TRANSFER
47 AIOrder
.AIOF_NO_UNLOAD
<- AIOrder
.OF_NO_UNLOAD
48 AIOrder
.AIOF_FULL_LOAD
<- AIOrder
.OF_FULL_LOAD
49 AIOrder
.AIOF_FULL_LOAD_ANY
<- AIOrder
.OF_FULL_LOAD_ANY
50 AIOrder
.AIOF_NO_LOAD
<- AIOrder
.OF_NO_LOAD
51 AIOrder
.AIOF_SERVICE_IF_NEEDED
<- AIOrder
.OF_SERVICE_IF_NEEDED
52 AIOrder
.AIOF_STOP_IN_DEPOT
<- AIOrder
.OF_STOP_IN_DEPOT
53 AIOrder
.AIOF_GOTO_NEAREST_DEPOT
<- AIOrder
.OF_GOTO_NEAREST_DEPOT
54 AIOrder
.AIOF_NON_STOP_FLAGS
<- AIOrder
.OF_NON_STOP_FLAGS
55 AIOrder
.AIOF_UNLOAD_FLAGS
<- AIOrder
.OF_UNLOAD_FLAGS
56 AIOrder
.AIOF_LOAD_FLAGS
<- AIOrder
.OF_LOAD_FLAGS
57 AIOrder
.AIOF_DEPOT_FLAGS
<- AIOrder
.OF_DEPOT_FLAGS
58 AIOrder
.AIOF_INVALID
<- AIOrder
.OF_INVALID