OpenTTD AI API  20241123-master-g26ae50baf9
Class Hierarchy
This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 12345]
 CAIControllerThe Controller, the class each AI should extend
 CAIInfo'Abstract' class of the AIs use to register themselves
 CAIObject
 CAIAccountingClass that keeps track of the costs, so you can request how much a block of commands did cost in total
 CAIAirportClass that handles all airport related functions
 CAIBaseClass that handles some basic functions
 CAIBaseStationBase class for stations and waypoints
 CAIStationClass that handles all station related functions
 CAIWaypointClass that handles all waypoint related functions
 CAIBridgeClass that handles all bridge related functions
 CAICargoClass that handles all cargo related functions
 CAICompanyClass that handles all company related functions
 CAIDateClass that handles all date related (calculation) functions
 CAIEngineClass that handles all engine related functions
 CAIErrorClass that handles all error related functions
 CAIEventClass that handles all event related functions
 CAIEventAircraftDestTooFarEvent AircraftDestTooFar, indicating the next destination of an aircraft is too far away
 CAIEventCompanyAskMergerEvent Company Ask Merger, indicating a company can be bought (cheaply) by you
 CAIEventCompanyBankruptEvent Company Bankrupt, indicating a company has gone bankrupt
 CAIEventCompanyInTroubleEvent Company In Trouble, indicating a company is in trouble and might go bankrupt soon
 CAIEventCompanyMergerEvent Company Merger, indicating a company has been bought by another company
 CAIEventCompanyNewEvent Company New, indicating a new company has been created
 CAIEventCompanyTownBase class for events involving a town and a company
 CAIEventDisasterZeppelinerClearedEvent Disaster Zeppeliner Cleared, indicating a previously crashed zeppeliner has been removed, and the airport is operating again
 CAIEventDisasterZeppelinerCrashedEvent Disaster Zeppeliner Crashed, indicating a zeppeliner has crashed on an airport and is blocking the runway
 CAIEventEngineAvailableEvent Engine Available, indicating a new engine is available
 CAIEventEnginePreviewEvent Engine Preview, indicating a manufacturer offer you to test a new engine
 CAIEventIndustryCloseEvent Industry Close, indicating an industry is going to be closed
 CAIEventIndustryOpenEvent Industry Open, indicating a new industry has been created
 CAIEventStationFirstVehicleEvent Station First Vehicle, indicating a station has been visited by a vehicle for the first time
 CAIEventSubsidyAwardedEvent Subsidy Awarded, indicating a subsidy is awarded to some company
 CAIEventSubsidyExpiredEvent Subsidy Expired, indicating a route that was once subsidized no longer is
 CAIEventSubsidyOfferEvent Subsidy Offered, indicating someone offered a subsidy
 CAIEventSubsidyOfferExpiredEvent Subsidy Offer Expired, indicating a subsidy will no longer be awarded
 CAIEventTownFoundedEvent Town Founded, indicating a new town has been created
 CAIEventVehicleAutoReplacedEvent VehicleAutoReplaced, indicating a vehicle has been auto replaced
 CAIEventVehicleCrashedEvent Vehicle Crash, indicating a vehicle of yours is crashed
 CAIEventVehicleLostEvent Vehicle Lost, indicating a vehicle can't find its way to its destination
 CAIEventVehicleUnprofitableEvent Vehicle Unprofitable, indicating a vehicle lost money last year
 CAIEventVehicleWaitingInDepotEvent VehicleWaitingInDepot, indicating a vehicle has arrived a depot and is now waiting there
 CAIEventControllerClass that handles all event related functions
 CAIExecModeClass to switch current mode to Execute Mode
 CAIGameSettingsClass that handles all game settings related functions
 CAIGroupClass that handles all group related functions
 CAIIndustryClass that handles all industry related functions
 CAIIndustryTypeClass that handles all industry-type related functions
 CAIInfrastructureClass that handles all company infrastructure related functions
 CAIListClass that creates a list which can keep item/value pairs, which you can walk
 CAIBridgeListCreate a list of bridges types
 CAIBridgeList_LengthCreate a list of bridges types that can be built on a specific length
 CAICargoListCreates a list of cargoes that can be produced in the current game
 CAICargoList_IndustryAcceptingCreates a list of cargoes that the given industry accepts
 CAICargoList_IndustryProducingCreates a list of cargoes that the given industry can produce
 CAICargoList_StationAcceptingCreates a list of cargoes that the given station accepts
 CAIDepotListCreates a list of the locations of the depots (and hangars) of which you are the owner
 CAIEngineListCreate a list of engines based on a vehicle type
 CAIGroupListCreates a list of groups of which you are the owner
 CAIIndustryListCreates a list of industries that are currently on the map
 CAIIndustryList_CargoAcceptingCreates a list of industries that accepts a given cargo
 CAIIndustryList_CargoProducingCreates a list of industries that can produce a given cargo
 CAIIndustryTypeListCreates a list of valid industry types
 CAINewGRFListCreate a list of loaded NewGRFs
 CAIObjectTypeListCreates a list of valid object types
 CAIRailTypeListCreates a list of all available railtypes
 CAIRoadTypeListCreates a list of all available roadtypes
 CAISignListCreate a list of signs your company has created
 CAIStationListCreates a list of stations of which you are the owner
 CAIStationList_CargoCreates a list of stations associated with cargo at a station
 CAIStationList_VehicleCreates a list of stations which the vehicle has in its orders
 CAISubsidyListCreates a list of all current subsidies
 CAITileListCreates an empty list, in which you can add tiles
 CAITownEffectListCreates a list of all TownEffects known in the game
 CAITownListCreates a list of towns that are currently on the map
 CAIVehicleListCreates a list of vehicles of which you are the owner
 CAIVehicleList_DefaultGroupCreates a list of vehicles that are in the default group
 CAIVehicleList_DepotCreates a list of vehicles that have orders to a given depot
 CAIVehicleList_GroupCreates a list of vehicles that are in a group
 CAIVehicleList_SharedOrdersCreates a list of vehicles that share orders
 CAIVehicleList_StationCreates a list of vehicles that have orders to a given station
 CAIWaypointListCreates a list of waypoints of which you are the owner
 CAIWaypointList_VehicleCreates a list of waypoints which the vehicle has in its orders
 CAILogClass that handles all log related functions
 CAIMapClass that handles all map related functions
 CAIMarineClass that handles all marine related functions
 CAINewGRFClass that handles all NewGRF related functions
 CAIObjectTypeClass that handles all object-type related functions
 CAIOrderClass that handles all order related functions
 CAIPriorityQueueClass that creates a queue which keeps its items ordered by an item priority
 CAIRailClass that handles all rail related functions
 CAIRoadClass that handles all road related functions
 CAISignClass that handles all sign related functions
 CAISubsidyClass that handles all subsidy related functions
 CAITestModeClass to switch current mode to Test Mode
 CAITileClass that handles all tile related functions
 CAITownClass that handles all town related functions
 CAITunnelClass that handles all tunnel related functions
 CAIVehicleClass that handles all vehicle related functions