OpenTTD GameScript API 20250111-master-g8b664a42b0
Class Hierarchy
This inheritance list is sorted roughly, but not completely, alphabetically:
[detail level 12345]
 CGSControllerThe Controller, the class each GS should extend
 CGSInfo'Abstract' class of the GSs use to register themselves
 CGSObject
 CGSAccountingClass that keeps track of the costs, so you can request how much a block of commands did cost in total
 CGSAdminClass that handles communication with the AdminPort
 CGSAirportClass that handles all airport related functions
 CGSAsyncModeClass to switch current mode to Async Mode
 CGSBaseClass that handles some basic functions
 CGSBaseStationBase class for stations and waypoints
 CGSBridgeClass that handles all bridge related functions
 CGSCargoClass that handles all cargo related functions
 CGSCargoMonitorClass that handles all cargo movement monitoring related functions
 CGSClientClass that handles all client related functions
 CGSCompanyClass that handles all company related functions
 CGSCompanyModeClass to switch the current company
 CGSDateClass that handles all date related (calculation) functions
 CGSEngineClass that handles all engine related functions
 CGSErrorClass that handles all error related functions
 CGSEventClass that handles all event related functions
 CGSEventControllerClass that handles all event related functions
 CGSExecModeClass to switch current mode to Execute Mode
 CGSGameClass that handles some game related functions
 CGSGameSettingsClass that handles all game settings related functions
 CGSGoalClass that handles some goal related functions
 CGSGroupClass that handles all group related functions
 CGSIndustryClass that handles all industry related functions
 CGSIndustryTypeClass that handles all industry-type related functions
 CGSInfrastructureClass that handles all company infrastructure related functions
 CGSLeagueTableClass that handles league table related functions
 CGSListClass that creates a list which can keep item/value pairs, which you can walk
 CGSLogClass that handles all log related functions
 CGSMapClass that handles all map related functions
 CGSMarineClass that handles all marine related functions
 CGSNewGRFClass that handles all NewGRF related functions
 CGSNewsClass that handles news messages
 CGSObjectTypeClass that handles all object-type related functions
 CGSOrderClass that handles all order related functions
 CGSPriorityQueueClass that creates a queue which keeps its items ordered by an item priority
 CGSRailClass that handles all rail related functions
 CGSRoadClass that handles all road related functions
 CGSSignClass that handles all sign related functions
 CGSStoryPageClass that handles story page related functions
 CGSSubsidyClass that handles all subsidy related functions
 CGSTestModeClass to switch current mode to Test Mode
 CGSTileClass that handles all tile related functions
 CGSTownClass that handles all town related functions
 CGSTunnelClass that handles all tunnel related functions
 CGSVehicleClass that handles all vehicle related functions
 CGSViewportClass that manipulates the user's viewport
 CGSWindowClass that handles window interaction
 CText
 CGSTextClass that handles all text related functions