Mercurial > hg > openttd
annotate bin/ai/compat_0.7.nut @ 19146:e3d1e5f8e6cb draft
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 04 Mar 2012 16:40:06 +0000 |
parents | ad8b29abd4d7 |
children |
rev | line source |
---|---|
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
2 |
12975
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
3 /* |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
4 * This file is part of OpenTTD. |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
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. |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
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. |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
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/>. |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
8 */ |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
9 |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
10 AILog.Info("0.7 API compatability in effect:"); |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
11 AILog.Info(" - AITown::GetLastMonthProduction's behaviour has slightly changed."); |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
12 AILog.Info(" - AISubsidy::GetDestination returns STATION_INVALID for awarded subsidies."); |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
13 AILog.Info(" - AISubsidy::GetSource returns STATION_INVALID for awarded subsidies."); |
dcff0ff964ae
(svn r17469) -Change: make the AI compatability wrapper not whine about deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
rubidium <rubidium@openttd.org>
parents:
12805
diff
changeset
|
14 |
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
15 AISign.GetMaxSignID <- function() |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
16 { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
17 local list = AISignList(); |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
18 local max_id = 0; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
19 foreach (id, d in list) { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
20 if (id > max_id) max_id = id; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
21 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
22 return max_id; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
23 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
24 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
25 AITile.GetHeight <- function(tile) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
26 { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
27 if (!AIMap.IsValidTile(tile)) return -1; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
28 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
29 return AITile.GetCornerHeight(tile, AITile.CORNER_N); |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
30 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
31 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
32 AIOrder.ChangeOrder <- function(vehicle_id, order_position, order_flags) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
33 { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
34 return AIOrder.SetOrderFlags(vehicle_id, order_position, order_flags); |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
35 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
36 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
37 AIWaypoint.WAYPOINT_INVALID <- 0xFFFF; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
38 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
39 AISubsidy.SourceIsTown <- function(subsidy_id) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
40 { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
41 if (!AISubsidy.IsValidSubsidy(subsidy_id) || AISubsidy.IsAwarded(subsidy_id)) return false; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
42 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
43 return AISubsidy.GetSourceType(subsidy_id) == AISubsidy.SPT_TOWN; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
44 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
45 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
46 AISubsidy.GetSource <- function(subsidy_id) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
47 { |
12801
82637088efc7
(svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION
yexo <yexo@openttd.org>
parents:
12748
diff
changeset
|
48 if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.STATION_INVALID; |
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
49 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
50 if (AISubsidy.IsAwarded(subsidy_id)) { |
12801
82637088efc7
(svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION
yexo <yexo@openttd.org>
parents:
12748
diff
changeset
|
51 return AIBaseStation.STATION_INVALID; |
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
52 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
53 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
54 return AISubsidy.GetSourceIndex(subsidy_id); |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
55 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
56 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
57 AISubsidy.DestinationIsTown <- function(subsidy_id) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
58 { |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
59 if (!AISubsidy.IsValidSubsidy(subsidy_id) || AISubsidy.IsAwarded(subsidy_id)) return false; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
60 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
61 return AISubsidy.GetDestinationType(subsidy_id) == AISubsidy.SPT_TOWN; |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
62 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
63 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
64 AISubsidy.GetDestination <- function(subsidy_id) |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
65 { |
12801
82637088efc7
(svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION
yexo <yexo@openttd.org>
parents:
12748
diff
changeset
|
66 if (!AISubsidy.IsValidSubsidy(subsidy_id)) return AIBaseStation.STATION_INVALID; |
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
67 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
68 if (AISubsidy.IsAwarded(subsidy_id)) { |
12801
82637088efc7
(svn r17289) -Fix (r17214): for AIs it's STATION_INVALID, not INVALID_STATION
yexo <yexo@openttd.org>
parents:
12748
diff
changeset
|
69 return AIBaseStation.STATION_INVALID; |
12748
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
70 } |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
71 |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
72 return AISubsidy.GetDestinationIndex(subsidy_id); |
a9bc7bccd304
(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api.
yexo <yexo@openttd.org>
parents:
diff
changeset
|
73 } |
12805
5e6dbae1f99a
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
smatz <smatz@openttd.org>
parents:
12801
diff
changeset
|
74 |
5e6dbae1f99a
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
smatz <smatz@openttd.org>
parents:
12801
diff
changeset
|
75 AITown.GetMaxProduction <- function(town_id, cargo_id) |
5e6dbae1f99a
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
smatz <smatz@openttd.org>
parents:
12801
diff
changeset
|
76 { |
5e6dbae1f99a
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
smatz <smatz@openttd.org>
parents:
12801
diff
changeset
|
77 return AITown.GetLastMonthProduction(town_id, cargo_id); |
5e6dbae1f99a
(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as documented at all, make it return what AITown::GetLastMonthProduction did
smatz <smatz@openttd.org>
parents:
12801
diff
changeset
|
78 } |
12977
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
79 |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
80 AIRail.RemoveRailWaypoint <- function(tile) |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
81 { |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
82 return AIRail.RemoveRailWaypointTileRect(tile, tile, true); |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
83 } |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
84 |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
85 AIRail.RemoveRailStationTileRect <- function(tile, tile2) |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
86 { |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
87 return AIRail.RemoveRailStationTileRectangle(tile, tile2, false); |
45ddb1d44728
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
rubidium <rubidium@openttd.org>
parents:
12975
diff
changeset
|
88 } |
13966
d3b22fd1fff3
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
yexo <yexo@openttd.org>
parents:
12977
diff
changeset
|
89 |
d3b22fd1fff3
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
yexo <yexo@openttd.org>
parents:
12977
diff
changeset
|
90 AIVehicle.SkipToVehicleOrder <- function(vehicle_id, order_position) |
d3b22fd1fff3
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
yexo <yexo@openttd.org>
parents:
12977
diff
changeset
|
91 { |
d3b22fd1fff3
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
yexo <yexo@openttd.org>
parents:
12977
diff
changeset
|
92 return AIOrder.SkipToOrder(vehicle_id, order_position); |
d3b22fd1fff3
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
yexo <yexo@openttd.org>
parents:
12977
diff
changeset
|
93 } |
14140
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
94 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
95 AIEngine.IsValidEngine <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
96 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
97 return AIEngine.IsBuildable(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
98 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
99 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
100 AIEngine._GetName <- AIEngine.GetName; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
101 AIEngine.GetName <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
102 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
103 if (!AIEngine.IsBuildable(engine_id)) return null; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
104 return AIEngine._GetName(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
105 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
106 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
107 AIEngine._GetCargoType <- AIEngine.GetCargoType; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
108 AIEngine.GetCargoType <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
109 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
110 if (!AIEngine.IsBuildable(engine_id)) return 255; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
111 return AIEngine._GetCargoType(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
112 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
113 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
114 AIEngine._CanRefitCargo <- AIEngine.CanRefitCargo; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
115 AIEngine.CanRefitCargo <- function(engine_id, cargo_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
116 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
117 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
118 return AIEngine._CanRefitCargo(engine_id, cargo_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
119 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
120 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
121 AIEngine._CanPullCargo <- AIEngine.CanPullCargo; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
122 AIEngine.CanPullCargo <- function(engine_id, cargo_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
123 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
124 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
125 return AIEngine._CanPullCargo(engine_id, cargo_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
126 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
127 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
128 AIEngine._GetCapacity <- AIEngine.GetCapacity; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
129 AIEngine.GetCapacity <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
130 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
131 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
132 return AIEngine._GetCapacity(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
133 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
134 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
135 AIEngine._GetReliability <- AIEngine.GetReliability; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
136 AIEngine.GetReliability <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
137 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
138 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
139 return AIEngine._GetReliability(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
140 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
141 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
142 AIEngine._GetMaxSpeed <- AIEngine.GetMaxSpeed; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
143 AIEngine.GetMaxSpeed <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
144 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
145 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
146 return AIEngine._GetMaxSpeed(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
147 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
148 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
149 AIEngine._GetPrice <- AIEngine.GetPrice; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
150 AIEngine.GetPrice <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
151 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
152 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
153 return AIEngine._GetPrice(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
154 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
155 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
156 AIEngine._GetMaxAge <- AIEngine.GetMaxAge; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
157 AIEngine.GetMaxAge <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
158 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
159 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
160 return AIEngine._GetMaxAge(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
161 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
162 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
163 AIEngine._GetRunningCost <- AIEngine.GetRunningCost; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
164 AIEngine.GetRunningCost <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
165 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
166 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
167 return AIEngine._GetRunningCost(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
168 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
169 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
170 AIEngine._GetPower <- AIEngine.GetPower; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
171 AIEngine.GetPower <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
172 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
173 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
174 return AIEngine._GetPower(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
175 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
176 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
177 AIEngine._GetWeight <- AIEngine.GetWeight; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
178 AIEngine.GetWeight <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
179 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
180 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
181 return AIEngine._GetWeight(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
182 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
183 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
184 AIEngine._GetMaxTractiveEffort <- AIEngine.GetMaxTractiveEffort; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
185 AIEngine.GetMaxTractiveEffort <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
186 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
187 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
188 return AIEngine._GetMaxTractiveEffort(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
189 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
190 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
191 AIEngine._GetDesignDate <- AIEngine.GetDesignDate; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
192 AIEngine.GetDesignDate <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
193 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
194 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
195 return AIEngine._GetDesignDate(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
196 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
197 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
198 AIEngine._GetVehicleType <- AIEngine.GetVehicleType; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
199 AIEngine.GetVehicleType <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
200 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
201 if (!AIEngine.IsBuildable(engine_id)) return AIVehicle.VT_INVALID; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
202 return AIEngine._GetVehicleType(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
203 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
204 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
205 AIEngine._IsWagon <- AIEngine.IsWagon; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
206 AIEngine.IsWagon <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
207 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
208 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
209 return AIEngine._IsWagon(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
210 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
211 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
212 AIEngine._CanRunOnRail <- AIEngine.CanRunOnRail; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
213 AIEngine.CanRunOnRail <- function(engine_id, track_rail_type) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
214 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
215 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
216 return AIEngine._CanRunOnRail(engine_id, track_rail_type); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
217 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
218 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
219 AIEngine._HasPowerOnRail <- AIEngine.HasPowerOnRail; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
220 AIEngine.HasPowerOnRail <- function(engine_id, track_rail_type) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
221 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
222 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
223 return AIEngine._HasPowerOnRail(engine_id, track_rail_type); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
224 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
225 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
226 AIEngine._GetRoadType <- AIEngine.GetRoadType; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
227 AIEngine.GetRoadType <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
228 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
229 if (!AIEngine.IsBuildable(engine_id)) return AIRoad.ROADTYPE_INVALID; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
230 return AIEngine._GetRoadType(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
231 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
232 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
233 AIEngine._GetRailType <- AIEngine.GetRailType; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
234 AIEngine.GetRailType <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
235 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
236 if (!AIEngine.IsBuildable(engine_id)) return AIRail.RAILTYPE_INVALID; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
237 return AIEngine._GetRailType(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
238 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
239 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
240 AIEngine._IsArticulated <- AIEngine.IsArticulated; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
241 AIEngine.IsArticulated <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
242 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
243 if (!AIEngine.IsBuildable(engine_id)) return false; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
244 return AIEngine._IsArticulated(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
245 } |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
246 |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
247 AIEngine._GetPlaneType <- AIEngine.GetPlaneType; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
248 AIEngine.GetPlaneType <- function(engine_id) |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
249 { |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
250 if (!AIEngine.IsBuildable(engine_id)) return -1; |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
251 return AIEngine._GetPlaneType(engine_id); |
75c2fb7276e0
(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a certain engine.
yexo <yexo@openttd.org>
parents:
13966
diff
changeset
|
252 } |
14177
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
253 |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
254 _AIWaypointList <- AIWaypointList; |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
255 class AIWaypointList extends _AIWaypointList { |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
256 constructor() |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
257 { |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
258 ::_AIWaypointList.constructor(AIWaypoint.WAYPOINT_RAIL); |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
259 } |
3703b52f8d36
(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
frosch <frosch@openttd.org>
parents:
14140
diff
changeset
|
260 } |
14652
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
261 |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
262 AIRoad._BuildRoadStation <- AIRoad.BuildRoadStation; |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
263 AIRoad.BuildRoadStation <- function(tile, front, road_veh_type, station_id) |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
264 { |
16213
82cb9b5c0d02
(svn r20913) -Fix (r19231): [NoAI] give the correct error message if you try to overbuild an opponont road station with your own while using the 0.7 or 1.0 compatibility layer (fanioz)
yexo <yexo@openttd.org>
parents:
15882
diff
changeset
|
265 if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false; |
14652
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
266 |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
267 return AIRoad._BuildRoadStation(tile, front, road_veh_type, station_id); |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
268 } |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
269 |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
270 AIRoad._BuildDriveThroughRoadStation <- AIRoad.BuildDriveThroughRoadStation; |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
271 AIRoad.BuildDriveThroughRoadStation <- function(tile, front, road_veh_type, station_id) |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
272 { |
16213
82cb9b5c0d02
(svn r20913) -Fix (r19231): [NoAI] give the correct error message if you try to overbuild an opponont road station with your own while using the 0.7 or 1.0 compatibility layer (fanioz)
yexo <yexo@openttd.org>
parents:
15882
diff
changeset
|
273 if (AIRoad.IsRoadStationTile(tile) && AICompany.IsMine(AITile.GetOwner(tile))) return false; |
14652
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
274 |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
275 return AIRoad._BuildDriveThroughRoadStation(tile, front, road_veh_type, station_id); |
fe1be42177f7
(svn r19231) -Feature: Allow overbuilding of road stops.
terkhen <terkhen@openttd.org>
parents:
14177
diff
changeset
|
276 } |
14710
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
277 |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
278 AIBridgeList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
279 AIBridgeList_Length.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
280 AICargoList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
281 AICargoList_IndustryAccepting.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
282 AICargoList_IndustryProducing.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
283 AIDepotList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
284 AIEngineList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
285 AIGroupList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
286 AIIndustryList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
287 AIIndustryList_CargoAccepting.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
288 AIIndustryList_CargoProducing.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
289 AIIndustryTypeList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
290 AIList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
291 AIRailTypeList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
292 AISignList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
293 AIStationList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
294 AIStationList_Vehicle.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
295 AISubsidyList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
296 AITileList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
297 AITileList_IndustryAccepting.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
298 AITileList_IndustryProducing.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
299 AITileList_StationType.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
300 AITownList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
301 AIVehicleList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
302 AIVehicleList_DefaultGroup.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
303 AIVehicleList_Group.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
304 AIVehicleList_SharedOrders.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
305 AIVehicleList_Station.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
306 AIWaypointList.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
307 AIWaypointList_Vehicle.HasNext <- |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
308 function() |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
309 { |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
310 return !this.IsEnd(); |
e2e08a4b8634
(svn r19294) -Change: [NoAI] Remove HasNext() from all lists/iterators and add IsEnd() instead.
frosch <frosch@openttd.org>
parents:
14652
diff
changeset
|
311 } |
15732
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
312 |
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
313 AIIndustry._IsCargoAccepted <- AIIndustry.IsCargoAccepted; |
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
314 AIIndustry.IsCargoAccepted <- function(industry_id, cargo_id) |
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
315 { |
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
316 return AIIndustry._IsCargoAccepted(industry_id, cargo_id) != AIIndustry.CAS_NOT_ACCEPTED; |
574ae0427343
(svn r20399) -Change: [NoAI] AIIndustry::IsCargoAccepted now returns 3 possible values so AIs can detect a temporaral refusal from an industry to accept some cargo type
yexo <yexo@openttd.org>
parents:
14710
diff
changeset
|
317 } |
15881
75df4bf4f199
(svn r20563) -Change: [NoAI] rename AIAbstractList to AIList
yexo <yexo@openttd.org>
parents:
15732
diff
changeset
|
318 |
75df4bf4f199
(svn r20563) -Change: [NoAI] rename AIAbstractList to AIList
yexo <yexo@openttd.org>
parents:
15732
diff
changeset
|
319 AIAbstractList <- AIList; |
15882
a7597c21c962
(svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem
yexo <yexo@openttd.org>
parents:
15881
diff
changeset
|
320 |
a7597c21c962
(svn r20564) -Fix (r20562): provide compatibility for AIs using the 0.7/1.0 API and using AIList::ChangeItem
yexo <yexo@openttd.org>
parents:
15881
diff
changeset
|
321 AIList.ChangeItem <- AIList.SetValue; |
17214
69d27ad4076c
(svn r21953) -Remove [FS#4456]: the non-uniform stations setting. Support for uniform stations has been broken for over a year
smatz <smatz@openttd.org>
parents:
16213
diff
changeset
|
322 |
69d27ad4076c
(svn r21953) -Remove [FS#4456]: the non-uniform stations setting. Support for uniform stations has been broken for over a year
smatz <smatz@openttd.org>
parents:
16213
diff
changeset
|
323 AIRail.ERR_NONUNIFORM_STATIONS_DISABLED <- 0xFFFF; |
17799
2dbb9286ae7a
(svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth)
yexo <yexo@openttd.org>
parents:
17214
diff
changeset
|
324 |
2dbb9286ae7a
(svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth)
yexo <yexo@openttd.org>
parents:
17214
diff
changeset
|
325 AICompany.GetCompanyValue <- function(company) |
2dbb9286ae7a
(svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth)
yexo <yexo@openttd.org>
parents:
17214
diff
changeset
|
326 { |
2dbb9286ae7a
(svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth)
yexo <yexo@openttd.org>
parents:
17214
diff
changeset
|
327 return AICompany.GetQuarterlyCompanyValue(company, AICompany.CURRENT_QUARTER); |
2dbb9286ae7a
(svn r22584) -Add: [NoAI] several functions to AICompany to find out performance information (Morloth)
yexo <yexo@openttd.org>
parents:
17214
diff
changeset
|
328 } |
18454
b9e554b1d8a1
(svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
truebrain <truebrain@openttd.org>
parents:
17799
diff
changeset
|
329 |
b9e554b1d8a1
(svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
truebrain <truebrain@openttd.org>
parents:
17799
diff
changeset
|
330 AITown.GetLastMonthTransported <- AITown.GetLastMonthSupplied; |
18553
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
331 |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
332 AIEvent.AI_ET_INVALID <- AIEvent.ET_INVALID; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
333 AIEvent.AI_ET_TEST <- AIEvent.ET_TEST; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
334 AIEvent.AI_ET_SUBSIDY_OFFER <- AIEvent.ET_SUBSIDY_OFFER; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
335 AIEvent.AI_ET_SUBSIDY_OFFER_EXPIRED <- AIEvent.ET_SUBSIDY_OFFER_EXPIRED; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
336 AIEvent.AI_ET_SUBSIDY_AWARDED <- AIEvent.ET_SUBSIDY_AWARDED; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
337 AIEvent.AI_ET_SUBSIDY_EXPIRED <- AIEvent.ET_SUBSIDY_EXPIRED; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
338 AIEvent.AI_ET_ENGINE_PREVIEW <- AIEvent.ET_ENGINE_PREVIEW; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
339 AIEvent.AI_ET_COMPANY_NEW <- AIEvent.ET_COMPANY_NEW; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
340 AIEvent.AI_ET_COMPANY_IN_TROUBLE <- AIEvent.ET_COMPANY_IN_TROUBLE; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
341 AIEvent.AI_ET_COMPANY_MERGER <- AIEvent.ET_COMPANY_MERGER; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
342 AIEvent.AI_ET_COMPANY_BANKRUPT <- AIEvent.ET_COMPANY_BANKRUPT; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
343 AIEvent.AI_ET_VEHICLE_CRASHED <- AIEvent.ET_VEHICLE_CRASHED; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
344 AIEvent.AI_ET_VEHICLE_LOST <- AIEvent.ET_VEHICLE_LOST; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
345 AIEvent.AI_ET_VEHICLE_WAITING_IN_DEPOT <- AIEvent.ET_VEHICLE_WAITING_IN_DEPOT; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
346 AIEvent.AI_ET_VEHICLE_UNPROFITABLE <- AIEvent.ET_VEHICLE_UNPROFITABLE; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
347 AIEvent.AI_ET_INDUSTRY_OPEN <- AIEvent.ET_INDUSTRY_OPEN; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
348 AIEvent.AI_ET_INDUSTRY_CLOSE <- AIEvent.ET_INDUSTRY_CLOSE; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
349 AIEvent.AI_ET_ENGINE_AVAILABLE <- AIEvent.ET_ENGINE_AVAILABLE; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
350 AIEvent.AI_ET_STATION_FIRST_VEHICLE <- AIEvent.ET_STATION_FIRST_VEHICLE; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
351 AIEvent.AI_ET_DISASTER_ZEPPELINER_CRASHED <- AIEvent.ET_DISASTER_ZEPPELINER_CRASHED; |
ad8b29abd4d7
(svn r23397) -Change: remove the AI_ prefix from all AIEvent enums
truebrain <truebrain@openttd.org>
parents:
18454
diff
changeset
|
352 AIEvent.AI_ET_DISASTER_ZEPPELINER_CLEARED <- AIEvent.ET_DISASTER_ZEPPELINER_CLEARED; |
19146
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
353 AIOrder.AIOF_NONE <- AIOrder.OF_NONE |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
354 AIOrder.AIOF_NON_STOP_INTERMEDIATE <- AIOrder.OF_NON_STOP_INTERMEDIATE |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
355 AIOrder.AIOF_NON_STOP_DESTINATION <- AIOrder.OF_NON_STOP_DESTINATION |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
356 AIOrder.AIOF_UNLOAD <- AIOrder.OF_UNLOAD |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
357 AIOrder.AIOF_TRANSFER <- AIOrder.OF_TRANSFER |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
358 AIOrder.AIOF_NO_UNLOAD <- AIOrder.OF_NO_UNLOAD |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
359 AIOrder.AIOF_FULL_LOAD <- AIOrder.OF_FULL_LOAD |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
360 AIOrder.AIOF_FULL_LOAD_ANY <- AIOrder.OF_FULL_LOAD_ANY |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
361 AIOrder.AIOF_NO_LOAD <- AIOrder.OF_NO_LOAD |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
362 AIOrder.AIOF_SERVICE_IF_NEEDED <- AIOrder.OF_SERVICE_IF_NEEDED |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
363 AIOrder.AIOF_STOP_IN_DEPOT <- AIOrder.OF_STOP_IN_DEPOT |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
364 AIOrder.AIOF_GOTO_NEAREST_DEPOT <- AIOrder.OF_GOTO_NEAREST_DEPOT |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
365 AIOrder.AIOF_NON_STOP_FLAGS <- AIOrder.OF_NON_STOP_FLAGS |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
366 AIOrder.AIOF_UNLOAD_FLAGS <- AIOrder.OF_UNLOAD_FLAGS |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
367 AIOrder.AIOF_LOAD_FLAGS <- AIOrder.OF_LOAD_FLAGS |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
368 AIOrder.AIOF_DEPOT_FLAGS <- AIOrder.OF_DEPOT_FLAGS |
e3d1e5f8e6cb
(svn r24006) -Fix [FS#5088]: AI used in names in API for GSOrder
rubidium <rubidium@openttd.org>
parents:
18553
diff
changeset
|
369 AIOrder.AIOF_INVALID <- AIOrder.OF_INVALID |