OpenTTD AI API: Data Structures

OpenTTD AI API 13.0-beta2

Data Structures
Here are the data structures with brief descriptions:

C AIAccounting | Class that keeps track of the costs, so you can request how much a block of commands did cost in total
C AIAirport | Class that handles all airport related functions
C AIBase | Class that handles some basic functions
C AIBaseStation | Base class for stations and waypoints
C AIBridge | Class that handles all bridge related functions
C AIBridgeList | Create a list of bridges types
C AIBridgeList_Length | Create a list of bridges types that can be built on a specific length
C AICargo | Class that handles all cargo related functions
C AICargoList | Creates a list of cargoes that can be produced in the current game
C AICargoList_IndustryAccepting | Creates a list of cargoes that the given industry accepts
C AICargoList_IndustryProducing | Creates a list of cargoes that the given industry can produce
C AICargoList_StationAccepting | Creates a list of cargoes that the given station accepts
C AICompany | Class that handles all company related functions
C AIController | The Controller, the class each AI should extend
C AIDate | Class that handles all date related (calculation) functions
C AIDepotList | Creates a list of the locations of the depots (and hangars) of which you are the owner
C AIEngine | Class that handles all engine related functions
C AIEngineList | Create a list of engines based on a vehicle type
C AIError | Class that handles all error related functions
C AIEvent | Class that handles all event related functions
C AIEventAircraftDestTooFar | Event AircraftDestTooFar, indicating the next destination of an aircraft is too far away
C AIEventCompanyAskMerger | Event Company Ask Merger, indicating a company can be bought (cheaply) by you
C AIEventCompanyBankrupt | Event Company Bankrupt, indicating a company has gone bankrupt
C AIEventCompanyInTrouble | Event Company In Trouble, indicating a company is in trouble and might go bankrupt soon
C AIEventCompanyMerger | Event Company Merger, indicating a company has been bought by another company
C AIEventCompanyNew | Event Company New, indicating a new company has been created
C AIEventCompanyTown | Base class for events involving a town and a company
C AIEventController | Class that handles all event related functions
C AIEventDisasterZeppelinerCleared | Event Disaster Zeppeliner Cleared, indicating a previously crashed zeppeliner has been removed, and the airport is operating again
C AIEventDisasterZeppelinerCrashed | Event Disaster Zeppeliner Crashed, indicating a zeppeliner has crashed on an airport and is blocking the runway
C AIEventEngineAvailable | Event Engine Available, indicating a new engine is available
C AIEventEnginePreview | Event Engine Preview, indicating a manufacturer offer you to test a new engine
C AIEventExclusiveTransportRights | Event Exclusive Transport Rights, indicating that company bought exclusive transport rights in a town
C AIEventIndustryClose | Event Industry Close, indicating an industry is going to be closed
C AIEventIndustryOpen | Event Industry Open, indicating a new industry has been created
C AIEventRoadReconstruction | Event Road Reconstruction, indicating that company triggered road reconstructions in a town
C AIEventStationFirstVehicle | Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time
C AIEventSubsidyAwarded | Event Subsidy Awarded, indicating a subsidy is awarded to some company
C AIEventSubsidyExpired | Event Subsidy Expired, indicating a route that was once subsidized no longer is
C AIEventSubsidyOffer | Event Subsidy Offered, indicating someone offered a subsidy
C AIEventSubsidyOfferExpired | Event Subsidy Offer Expired, indicating a subsidy will no longer be awarded
C AIEventTownFounded | Event Town Founded, indicating a new town has been created
C AIEventVehicleAutoReplaced | Event VehicleAutoReplaced, indicating a vehicle has been auto replaced
C AIEventVehicleCrashed | Event Vehicle Crash, indicating a vehicle of yours is crashed
C AIEventVehicleLost | Event Vehicle Lost, indicating a vehicle can't find its way to its destination
C AIEventVehicleUnprofitable | Event Vehicle Unprofitable, indicating a vehicle lost money last year
C AIEventVehicleWaitingInDepot | Event VehicleWaitingInDepot, indicating a vehicle has arrived a depot and is now waiting there
C AIExecMode | Class to switch current mode to Execute Mode
C AIGameSettings | Class that handles all game settings related functions
C AIGroup | Class that handles all group related functions
C AIGroupList | Creates a list of groups of which you are the owner
C AIIndustry | Class that handles all industry related functions
C AIIndustryList | Creates a list of industries that are currently on the map
C AIIndustryList_CargoAccepting | Creates a list of industries that accepts a given cargo
C AIIndustryList_CargoProducing | Creates a list of industries that can produce a given cargo
C AIIndustryType | Class that handles all industry-type related functions
C AIIndustryTypeList | Creates a list of valid industry types
C AIInfo | 'Abstract' class of the AIs use to register themselves
C AIInfrastructure | Class that handles all company infrastructure related functions
C AIList | Class that creates a list which can keep item/value pairs, which you can walk
C AILog | Class that handles all log related functions
C AIMap | Class that handles all map related functions
C AIMarine | Class that handles all marine related functions
C AINewGRF | Class that handles all NewGRF related functions
C AINewGRFList | Create a list of loaded NewGRFs
C AIObjectType | Class that handles all object-type related functions
C AIObjectTypeList | Creates a list of valid object types
C AIOrder | Class that handles all order related functions
C AIPriorityQueue | Class that creates a queue which keeps its items ordered by an item priority
C AIRail | Class that handles all rail related functions
C AIRailTypeList | Creates a list of all available railtypes
C AIRoad | Class that handles all road related functions
C AIRoadTypeList | Creates a list of all available roadtypes
C AISign | Class that handles all sign related functions
C AISignList | Create a list of signs your company has created
C AIStation | Class that handles all station related functions
C AIStationList | Creates a list of stations of which you are the owner
C AIStationList_Cargo | Creates a list of stations associated with cargo at a station
C AIStationList_CargoPlanned | Creates a list of stations associated with cargo planned to pass a station
C AIStationList_CargoPlannedByFrom | Creates a list of origin stations of cargo planned to pass a station, with the monthly amounts of cargo planned for each of those origin stations as values
C AIStationList_CargoPlannedByVia | Creates a list of next hops of cargo planned to pass a station, with the monthly amounts of cargo planned for each of those next hops as values
C AIStationList_CargoPlannedFromByVia | Creates a list of next hops of cargo planned to pass a station and originating from another station, with the monthly amounts of cargo planned for each of those next hops as values
C AIStationList_CargoPlannedViaByFrom | Creates a list of origin stations of cargo planned to pass a station going via another station, with the monthly amounts of cargo planned for each of those origin stations as values
C AIStationList_CargoWaiting | Creates a list of stations associated with cargo waiting at a station
C AIStationList_CargoWaitingByFrom | Creates a list of origin stations of waiting cargo at a station, with the amounts of cargo waiting from each of those origin stations as values
C AIStationList_CargoWaitingByVia | Creates a list of next hops of waiting cargo at a station, with the amounts of cargo waiting for each of those next hops as values
C AIStationList_CargoWaitingFromByVia | Creates a list of next hops of waiting cargo from a specific station at another station, with the amounts of cargo waiting for each of those next hops as values
C AIStationList_CargoWaitingViaByFrom | Creates a list of origin stations of cargo waiting at a station for a transfer via another station, with the amounts of cargo waiting from each of those origin stations as values
C AIStationList_Vehicle | Creates a list of stations which the vehicle has in its orders
C AISubsidy | Class that handles all subsidy related functions
C AISubsidyList | Creates a list of all current subsidies
C AITestMode | Class to switch current mode to Test Mode
C AITile | Class that handles all tile related functions
C AITileList | Creates an empty list, in which you can add tiles
C AITileList_IndustryAccepting | Creates a list of tiles that will accept cargo for the given industry
C AITileList_IndustryProducing | Creates a list of tiles which the industry checks to see if a station is there to receive cargo produced by this industry
C AITileList_StationType | Creates a list of tiles which have the requested StationType of the StationID
C AITown | Class that handles all town related functions
C AITownEffectList | Creates a list of all TownEffects known in the game
C AITownList | Creates a list of towns that are currently on the map
C AITunnel | Class that handles all tunnel related functions
C AIVehicle | Class that handles all vehicle related functions
C AIVehicleList | Creates a list of vehicles of which you are the owner
C AIVehicleList_DefaultGroup | Creates a list of vehicles that are in the default group
C AIVehicleList_Depot | Creates a list of vehicles that have orders to a given depot
C AIVehicleList_Group | Creates a list of vehicles that are in a group
C AIVehicleList_SharedOrders | Creates a list of vehicles that share orders
C AIVehicleList_Station | Creates a list of vehicles that have orders to a given station
C AIWaypoint | Class that handles all waypoint related functions
C AIWaypointList | Creates a list of waypoints of which you are the owner
C AIWaypointList_Vehicle | Creates a list of waypoints which the vehicle has in its orders