summaryrefslogtreecommitdiff
path: root/src/ai/api
AgeCommit message (Collapse)Author
2009-07-01(svn r16711) -Codechange: use FOR_ALL_SUBSIDIES macro when iterating over ↵smatz
all subsidies
2009-06-27(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a ↵frosch
CargoArray instead of a pointer to a static array.
2009-06-27(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have ↵frosch
to deal with sizeof() wrt. typedef-ed arrays.
2009-06-27(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its ↵frosch
instances to more meaningful names.
2009-06-24(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()smatz
2009-06-24(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()smatz
2009-06-23(svn r16640) -Codechange: move roadstop stuff to separate filessmatz
2009-06-21(svn r16618) -Fix (r16614): Silence a warning.frosch
2009-06-21(svn r16614) -Codechange: Make the airport min/max available year a property ↵yexo
of the Airport class. -Change: rename station.always_small_airport to station.never_expire_airports to make it more future-proof
2009-06-17(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoysyexo
2009-06-16(svn r16581) -Codechange: unify the access to Engine::lifelength.rubidium
2009-06-11(svn r16563) -Fix [NoAI]: AIMarine::AreWaterTilesConnected didn't return ↵yexo
true for bridge head<>neighbouring water tile
2009-06-11(svn r16562) -Revert (r16561)yexo
2009-06-11(svn r16561) -Fix [NoAI]: AIMarine::AreWaterTilesConnected didn't return ↵yexo
true for bridge head<>neighbouring water tile
2009-06-07(svn r16529) -Fix [NoAI]: StationIDs from oilrigs were not considered valid ↵yexo
by the API.
2009-06-06(svn r16527) -Codechange: use static member functions instead of simple ↵smatz
casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-06-06(svn r16524) -Fix [FS#2963]: missing guards in the NoAI API making it ↵rubidium
possible to hit an assert in OpenTTD.
2009-06-05(svn r16520) -Fix [NoAI]: Make sure AIBridge::BuildBridge returns what the ↵yexo
documentation says it does (r16244 for AIBridge)
2009-06-03(svn r16510) -Doc: silence some (AI) doxygen warnings by adding comments ↵rubidium
about the appropriate things.
2009-06-01(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function ↵yexo
called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall. IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-26(svn r16441) -Codechange: new class SpecializedVehicle used as superclass ↵smatz
for all vehicle types
2009-05-26(svn r16440) -Fix [NoAI]: AIRail::GetRailStationDirection returned incorrect ↵yexo
information
2009-05-26(svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it ↵yexo
with calls to CmdChangeCompanySetting
2009-05-24(svn r16421) -Codechange: do not unnecessarily remove constness or ↵rubidium
unnecessarily add it.
2009-05-23(svn r16403) -Codechange: move code related to subsidies to separate filesmatz
2009-05-23(svn r16400) -Add [NoAI]: add AISignList that can be used to get a list of ↵yexo
valid signs. This makes AISign::GetMaxSignID obsolete.
2009-05-23(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehiclerubidium
2009-05-23(svn r16395) -Fix (r16379): max sign ID can be higher than total number of signssmatz
2009-05-23(svn r16394) -Codechange: move (NewGRF) cache variables into a separate ↵rubidium
struct so (some vehicle related) NewGRF cache 'desyncs' can be tested easier.
2009-05-22(svn r16393) -Codechange: move VehicleRail to Train.rubidium
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-22(svn r16390) -Codechange: move u.road to RoadVehicle.rubidium
2009-05-22(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and ↵smatz
GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
2009-05-18(svn r16354) -Codechange: use 'new' pool accessors and methods for Engine toosmatz
2009-05-18(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of ↵smatz
PoolItem::IsValidID() and PoolItem::Get()
2009-05-18(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), ↵smatz
introduce shiny new IsPlainRailTile()
2009-05-17(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 ↵rubidium
with < .. - 1 (both caused due to wrapper functions)
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-05-15(svn r16315) -Codechange: move the autorenew settings to a new ↵yexo
CompanySettings struct
2009-05-15(svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL ↵frosch
and _SIGNALS.
2009-05-10(svn r16267) -Documentation: [NoAI] Explain how to deal with IDs of various ↵frosch
objects.
2009-05-10(svn r16266) -Documentation: [NoAI] Add details to AITile::(Raise|Lower)Tile ↵frosch
wrt. modifiing multiple corners at once.
2009-05-10(svn r16264) -Change/Fix (r16262): [NoAI] Change SLOPE_INVALID to 0xFFFF so ↵frosch
that SLOPE_INVALID != (SLOPE_ELEVATED | SLOPE_STEEP | SLOPE_HALFTILE_MASK).
2009-05-09(svn r16262) -Fix [NoAI]: Check slopes passed to the API better for validityyexo
2009-05-07(svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the ↵yexo
newgrf-version of OpenTTD
2009-05-07(svn r16252) -Add [NoAI]: AIAirport::GetPrice, returning the building cost ↵yexo
of an airport
2009-05-07(svn r16249) -Fix [NoAI]: Enable parameter checking for AIController::* ↵yexo
functions again
2009-05-06(svn r16244) -Fix [NoAI]: Make sure AITunnel::BuildTunnel returns what the ↵yexo
documentation says it does