Data Structures

Documentation can differ from the API in your binaries!
The NoAI/OpenTTD version which match this documentation is 1.2.1
For a changelog: ChangeLog
Latest binaries:
Here are the data structures with brief descriptions:
AIAccountingClass that keeps track of the costs, so you can request how much a block of commands did cost in total
AIAirportClass that handles all airport related functions
AIBaseClass that handles some basic functions
AIBaseStationBase class for stations and waypoints
AIBridgeClass that handles all bridge related functions
AIBridgeListCreate a list of bridges types
AIBridgeList_LengthCreate a list of bridges types that can be built on a specific length
AICargoClass that handles all cargo related functions
AICargoListCreates a list of cargoes that can be produced in the current game
AICargoList_IndustryAcceptingCreates a list of cargoes that the given industry accepts
AICargoList_IndustryProducingCreates a list of cargoes that the given industry can produce
AICargoList_StationAcceptingCreates a list of cargoes that the given station accepts
AICompanyClass that handles all company related functions
AIControllerThe Controller, the class each AI should extend
AIDateClass that handles all date related (calculation) functions
AIDepotListCreates a list of the locations of the depots (and hangars) of which you are the owner
AIEngineClass that handles all engine related functions
AIEngineListCreate a list of engines based on a vehicle type
AIErrorClass that handles all error related functions
AIEventClass that handles all event related functions
AIEventAircraftDestTooFarEvent AircraftDestTooFar, indicating the next destination of an aircraft is too far away
AIEventCompanyAskMergerEvent Company Ask Merger, indicating a company can be bought (cheaply) by you
AIEventCompanyBankruptEvent Company Bankrupt, indicating a company has gone bankrupt
AIEventCompanyInTroubleEvent Company In Trouble, indicating a company is in trouble and might go bankrupt soon
AIEventCompanyMergerEvent Company Merger, indicating a company has been bought by another company
AIEventCompanyNewEvent Company New, indicating a new company has been created
AIEventControllerClass that handles all event related functions
AIEventDisasterZeppelinerClearedEvent Disaster Zeppeliner Cleared, indicating a previously crashed zeppeliner has been removed, and the airport is operating again
AIEventDisasterZeppelinerCrashedEvent Disaster Zeppeliner Crashed, indicating a zeppeliner has crashed on an airport and is blocking the runway
AIEventEngineAvailableEvent Engine Available, indicating a new engine is available
AIEventEnginePreviewEvent Engine Preview, indicating a manufacturer offer you to test a new engine
AIEventIndustryCloseEvent Industry Close, indicating an industry is going to be closed
AIEventIndustryOpenEvent Industry Open, indicating a new industry has been created
AIEventStationFirstVehicleEvent Station First Vehicle, indicating a station has been visited by a vehicle for the first time
AIEventSubsidyAwardedEvent Subidy Awarded, indicating a subsidy is awarded to some company
AIEventSubsidyExpiredEvent Subsidy Expired, indicating a route that was once subsidized no longer is
AIEventSubsidyOfferEvent Subsidy Offered, indicating someone offered a subsidy
AIEventSubsidyOfferExpiredEvent Subsidy Offer Expired, indicating a subsidy will no longer be awarded
AIEventTownFoundedEvent Town Founded, indicating a new town has been created
AIEventVehicleCrashedEvent Vehicle Crash, indicating a vehicle of yours is crashed
AIEventVehicleLostEvent Vehicle Lost, indicating a vehicle can't find its way to its destination
AIEventVehicleUnprofitableEvent Vehicle Unprofitable, indicating a vehicle lost money last year
AIEventVehicleWaitingInDepotEvent VehicleWaitingInDepot, indicating a vehicle has arrived a depot and is now waiting there
AIExecModeClass to switch current mode to Execute Mode
AIGameSettingsClass that handles all game settings related functions
AIGroupClass that handles all group related functions
AIGroupListCreates a list of groups of which you are the owner
AIIndustryClass that handles all industry related functions
AIIndustryListCreates a list of industries that are currently on the map
AIIndustryList_CargoAcceptingCreates a list of industries that accepts a given cargo
AIIndustryList_CargoProducingCreates a list of industries that can produce a given cargo
AIIndustryTypeClass that handles all industry-type related functions
AIIndustryTypeListCreates a list of valid industry types
AIInfo'Abstract' class of the AIs use to register themselves
AIInfrastructureClass that handles all company infrastructure related functions
AIListClass that creates a list which can keep item/value pairs, which you can walk
AILogClass that handles all log related functions
AIMapClass that handles all map related functions
AIMarineClass that handles all marine related functions
AIOrderClass that handles all order related functions
AIRailClass that handles all rail related functions
AIRailTypeListCreates a list of all available railtypes
AIRoadClass that handles all road related functions
AISignClass that handles all sign related functions
AISignListCreate a list of signs your company has created
AIStationClass that handles all station related functions
AIStationListCreates a list of stations of which you are the owner
AIStationList_VehicleCreates a list of stations which the vehicle has in its orders
AISubsidyClass that handles all subsidy related functions
AISubsidyListCreates a list of all current subsidies
AITestModeClass to switch current mode to Test Mode
AITileClass that handles all tile related functions
AITileListCreates an empty list, in which you can add tiles
AITileList_IndustryAcceptingCreates a list of tiles that will accept cargo for the given industry
AITileList_IndustryProducingCreates a list of tiles which the industry checks to see if a station is there to receive cargo produced by this industry
AITileList_StationTypeCreates a list of tiles which have the requested StationType of the StationID
AITownClass that handles all town related functions
AITownEffectListCreates a list of all TownEffects known in the game
AITownListCreates a list of towns that are currently on the map
AITunnelClass that handles all tunnel related functions
AIVehicleClass that handles all vehicle related functions
AIVehicleListCreates a list of vehicles of which you are the owner
AIVehicleList_DefaultGroupCreates a list of vehicles that are in the default group
AIVehicleList_DepotCreates a list of vehicles that have orders to a given depot
AIVehicleList_GroupCreates a list of vehicles that are in a group
AIVehicleList_SharedOrdersCreates a list of vehicles that share orders
AIVehicleList_StationCreates a list of vehicles that have orders to a given station
AIWaypointClass that handles all waypoint related functions
AIWaypointListCreates a list of waypoints of which you are the owner
AIWaypointList_VehicleCreates a list of waypoints which the vehicle has in its orders

Generated on Thu May 31 21:43:01 2012 for OpenTTD NoAI API by  doxygen 1.5.6