OpenTTD GameScript API  1.10.3
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
 CGSBaseClass that handles some basic functions
 CGSBaseStationBase class for stations and waypoints
 CGSStationClass that handles all station related functions
 CGSWaypointClass that handles all waypoint related functions
 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
 CGSEventAdminPortEvent Admin Port, indicating the admin port is sending you information
 CGSEventCompanyBankruptEvent Company Bankrupt, indicating a company has gone bankrupt
 CGSEventCompanyInTroubleEvent Company In Trouble, indicating a company is in trouble and might go bankrupt soon
 CGSEventCompanyMergerEvent Company Merger, indicating a company has been bought by another company
 CGSEventCompanyNewEvent Company New, indicating a new company has been created
 CGSEventCompanyTownBase class for events involving a town and a company
 CGSEventGoalQuestionAnswerEvent Goal Question Answer, where you receive the answer given to your questions
 CGSEventIndustryCloseEvent Industry Close, indicating an industry is going to be closed
 CGSEventIndustryOpenEvent Industry Open, indicating a new industry has been created
 CGSEventStationFirstVehicleEvent Station First Vehicle, indicating a station has been visited by a vehicle for the first time
 CGSEventSubsidyAwardedEvent Subsidy Awarded, indicating a subsidy is awarded to some company
 CGSEventSubsidyExpiredEvent Subsidy Expired, indicating a route that was once subsidized no longer is
 CGSEventSubsidyOfferEvent Subsidy Offered, indicating someone offered a subsidy
 CGSEventSubsidyOfferExpiredEvent Subsidy Offer Expired, indicating a subsidy will no longer be awarded
 CGSEventTownFoundedEvent Town Founded, indicating a new town has been created
 CGSEventVehicleCrashedEvent Vehicle Crash, indicating a vehicle of yours is crashed
 CGSEventWindowWidgetClickEvent Window Widget Click, when a user clicks on a highlighted widget
 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
 CGSIndustryClass that handles all industry related functions
 CGSIndustryTypeClass that handles all industry-type related functions
 CGSInfrastructureClass that handles all company infrastructure related functions
 CGSListClass that creates a list which can keep item/value pairs, which you can walk
 CGSBridgeListCreate a list of bridges types
 CGSBridgeList_LengthCreate a list of bridges types that can be built on a specific length
 CGSCargoListCreates a list of cargoes that can be produced in the current game
 CGSCargoList_IndustryAcceptingCreates a list of cargoes that the given industry accepts
 CGSCargoList_IndustryProducingCreates a list of cargoes that the given industry can produce
 CGSCargoList_StationAcceptingCreates a list of cargoes that the given station accepts
 CGSClientListCreates a list of clients that are currently in game
 CGSClientList_CompanyCreates a list of clients that are playing in the company
 CGSDepotListCreates a list of the locations of the depots (and hangars) of which you are the owner
 CGSEngineListCreate a list of engines based on a vehicle type
 CGSIndustryListCreates a list of industries that are currently on the map
 CGSIndustryList_CargoAcceptingCreates a list of industries that accepts a given cargo
 CGSIndustryList_CargoProducingCreates a list of industries that can produce a given cargo
 CGSIndustryTypeListCreates a list of valid industry types
 CGSRailTypeListCreates a list of all available railtypes
 CGSRoadTypeListCreates a list of all available roadtypes
 CGSSignListCreate a list of signs your company has created
 CGSStationListCreates a list of stations of which you are the owner
 CGSStationList_CargoCreates a list of stations associated with cargo at a station
 CGSStationList_VehicleCreates a list of stations which the vehicle has in its orders
 CGSStoryPageElementListCreate a list of all story page elements
 CGSStoryPageListCreate a list of all story pages
 CGSSubsidyListCreates a list of all current subsidies
 CGSTileListCreates an empty list, in which you can add tiles
 CGSTownEffectListCreates a list of all TownEffects known in the game
 CGSTownListCreates a list of towns that are currently on the map
 CGSVehicleListCreates a list of vehicles of which you are the owner
 CGSVehicleList_DepotCreates a list of vehicles that have orders to a given depot
 CGSVehicleList_SharedOrdersCreates a list of vehicles that share orders
 CGSVehicleList_StationCreates a list of vehicles that have orders to a given station
 CGSWaypointListCreates a list of waypoints of which you are the owner
 CGSWaypointList_VehicleCreates a list of waypoints which the vehicle has in its orders
 CGSLogClass that handles all log related functions
 CGSMapClass that handles all map related functions
 CGSMarineClass that handles all marine related functions
 CGSNewsClass that handles news messages
 CGSOrderClass that handles all order related functions
 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
 CZeroedMemoryAllocator
 CGSTextClass that handles all text related functions