OpenTTD Source: Globals

OpenTTD Source 13.1

Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation:

### - a -

- A2H : tgp.cpp
- A2I : tgp.cpp
- A5BLOCK_ALLOW_OFFSET : newgrf.cpp
- A5BLOCK_FIXED : newgrf.cpp
- A5BLOCK_INVALID : newgrf.cpp
- AAT_BUILT : newgrf_animation_type.h
- AAT_STATION_250_TICKS : newgrf_animation_type.h
- AAT_STATION_AIRPLANE_LAND : newgrf_animation_type.h
- AAT_STATION_CARGO_TAKEN : newgrf_animation_type.h
- AAT_STATION_NEW_CARGO : newgrf_animation_type.h
- AAT_TILELOOP : newgrf_animation_type.h
- AB() : bitmath_func.hpp
- AbortGeneratingWorld() : genworld.cpp , genworld.h
- AboutWidgets : misc_widget.h
- abs() : math_func.hpp
- AbstractFileType : fileio_type.h
- AccelerationModel : vehicle_type.h
- AccelStatus : ground_vehicle.hpp
- AcceptEnginePreview() : engine.cpp
- Action5BlockType : newgrf.cpp
- ActivateOldShore() : newgrf.cpp
- ActivateOldTramDepot() : newgrf.cpp
- AddAcceptedCargoProc : tile_cmd.h
- AddAnimatedTile() : animated_tile.cpp , animated_tile_func.h
- AddArticulatedParts() : articulated_vehicles.cpp , articulated_vehicles.h
- AddCargoDelivery() : cargomonitor.cpp , cargomonitor.h
- AddChangedPersistentStorage() : newgrf_storage.h , newgrf_storage.cpp
- AddChildSpriteScreen() : viewport.cpp , viewport_func.h
- AddChildSpriteToFoundation() : viewport.cpp
- AddClearCounter() : clear_map.h
- AddClearDensity() : clear_map.h
- AddCombinedSprite() : viewport.cpp
- AddCustomRefreshRates() : settings_gui.cpp
- AddDateIntroducedRailTypes() : rail.cpp , rail.h
- AddDateIntroducedRoadTypes() : road.cpp , road_func.h
- AddDirtyBlock() : gfx.cpp , gfx_func.h
- AddEngineReplacement() : autoreplace.cpp , autoreplace_func.h
- AddEngineReplacementForCompany() : autoreplace_func.h
- AddGenericCallback() : newgrf_generic.cpp , newgrf_generic.h
- AddGRFString() : newgrf_text.cpp , newgrf_text.h
- AddGRFTextToList() : newgrf_text.cpp , newgrf_text.h
- AddInflation() : economy.cpp , economy_func.h
- AddKey() : osk_gui.cpp
- AddNearbyStation() : station_gui.cpp
- AddNewsItem() : news_func.h , news_gui.cpp
- AddProducedCargoProc : tile_cmd.h
- AddRemoveEngineFromAutoreplaceAndBuildWindows() : autoreplace_gui.cpp , autoreplace_gui.h
- AddSideToSignalBuffer() : signal.cpp , signal_func.h
- AddSortableSpriteToDraw() : viewport.cpp , viewport_func.h
- AddStringForMapping() : newgrf.cpp
- AddTileIndexDiffCWrap() : map_func.h
- AddTileSpriteToDraw() : viewport.cpp
- AddTrackToSignalBuffer() : signal.cpp , signal_func.h
- AddTreeCount() : tree_map.h
- AddTreeCounter() : tree_map.h
- AddTreeGrowth() : tree_map.h
- AddVehicleAdviceNewsItem() : news_func.h
- AddVehicleNewsItem() : news_func.h
- AddVehicleToGroup() : group_cmd.cpp
- AdjustByZoom() : zoom_func.h
- AdjustGUIZoom() : gfx.cpp , gfx_func.h
- AdjustTileh() : elrail.cpp
- ADMIN_AUTHORISATION_TIMEOUT() : network_admin.cpp
- ADMIN_CRR_AUTOCLEAN : tcp_admin.h
- ADMIN_CRR_BANKRUPT : tcp_admin.h
- ADMIN_CRR_END : tcp_admin.h
- ADMIN_CRR_MANUAL : tcp_admin.h
- ADMIN_FREQUENCY_ANUALLY : tcp_admin.h
- ADMIN_FREQUENCY_AUTOMATIC : tcp_admin.h
- ADMIN_FREQUENCY_DAILY : tcp_admin.h
- ADMIN_FREQUENCY_MONTHLY : tcp_admin.h
- ADMIN_FREQUENCY_POLL : tcp_admin.h
- ADMIN_FREQUENCY_QUARTERLY : tcp_admin.h
- ADMIN_FREQUENCY_WEEKLY : tcp_admin.h
- ADMIN_PACKET_ADMIN_CHAT : tcp_admin.h
- ADMIN_PACKET_ADMIN_EXTERNAL_CHAT : tcp_admin.h
- ADMIN_PACKET_ADMIN_GAMESCRIPT : tcp_admin.h
- ADMIN_PACKET_ADMIN_JOIN : tcp_admin.h
- ADMIN_PACKET_ADMIN_PING : tcp_admin.h
- ADMIN_PACKET_ADMIN_POLL : tcp_admin.h
- ADMIN_PACKET_ADMIN_QUIT : tcp_admin.h
- ADMIN_PACKET_ADMIN_RCON : tcp_admin.h
- ADMIN_PACKET_ADMIN_UPDATE_FREQUENCY : tcp_admin.h
- ADMIN_PACKET_SERVER_BANNED : tcp_admin.h
- ADMIN_PACKET_SERVER_CHAT : tcp_admin.h
- ADMIN_PACKET_SERVER_CLIENT_ERROR : tcp_admin.h
- ADMIN_PACKET_SERVER_CLIENT_INFO : tcp_admin.h
- ADMIN_PACKET_SERVER_CLIENT_JOIN : tcp_admin.h
- ADMIN_PACKET_SERVER_CLIENT_QUIT : tcp_admin.h
- ADMIN_PACKET_SERVER_CLIENT_UPDATE : tcp_admin.h
- ADMIN_PACKET_SERVER_CMD_LOGGING : tcp_admin.h
- ADMIN_PACKET_SERVER_CMD_LOGGING_OLD : tcp_admin.h
- ADMIN_PACKET_SERVER_CMD_NAMES : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_ECONOMY : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_INFO : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_NEW : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_REMOVE : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_STATS : tcp_admin.h
- ADMIN_PACKET_SERVER_COMPANY_UPDATE : tcp_admin.h
- ADMIN_PACKET_SERVER_CONSOLE : tcp_admin.h
- ADMIN_PACKET_SERVER_DATE : tcp_admin.h
- ADMIN_PACKET_SERVER_ERROR : tcp_admin.h
- ADMIN_PACKET_SERVER_FULL : tcp_admin.h
- ADMIN_PACKET_SERVER_GAMESCRIPT : tcp_admin.h
- ADMIN_PACKET_SERVER_NEWGAME : tcp_admin.h
- ADMIN_PACKET_SERVER_PONG : tcp_admin.h
- ADMIN_PACKET_SERVER_PROTOCOL : tcp_admin.h
- ADMIN_PACKET_SERVER_RCON : tcp_admin.h
- ADMIN_PACKET_SERVER_RCON_END : tcp_admin.h
- ADMIN_PACKET_SERVER_SHUTDOWN : tcp_admin.h
- ADMIN_PACKET_SERVER_WELCOME : tcp_admin.h
- ADMIN_STATUS_ACTIVE : tcp_admin.h
- ADMIN_STATUS_END : tcp_admin.h
- ADMIN_STATUS_INACTIVE : tcp_admin.h
- ADMIN_UPDATE_CHAT : tcp_admin.h
- ADMIN_UPDATE_CLIENT_INFO : tcp_admin.h
- ADMIN_UPDATE_CMD_LOGGING : tcp_admin.h
- ADMIN_UPDATE_CMD_NAMES : tcp_admin.h
- ADMIN_UPDATE_COMPANY_ECONOMY : tcp_admin.h
- ADMIN_UPDATE_COMPANY_INFO : tcp_admin.h
- ADMIN_UPDATE_COMPANY_STATS : tcp_admin.h
- ADMIN_UPDATE_CONSOLE : tcp_admin.h
- ADMIN_UPDATE_DATE : tcp_admin.h
- ADMIN_UPDATE_END : tcp_admin.h
- ADMIN_UPDATE_GAMESCRIPT : tcp_admin.h
- AdminClientBanCallback() : network_gui.cpp
- AdminClientKickCallback() : network_gui.cpp
- AdminCompanyRemoveReason : tcp_admin.h
- AdminCompanyResetCallback() : network_gui.cpp
- AdminCompanyUnlockCallback() : network_gui.cpp
- AdminIndex : network_type.h
- AdminStatus : tcp_admin.h
- AdminUpdateFrequency : tcp_admin.h
- AdminUpdateType : tcp_admin.h
- AdvanceWagonsAfterSwap() : train_cmd.cpp
- AdvanceWagonsBeforeSwap() : train_cmd.cpp
- AdvertiseIndustryOpening() : industry_cmd.cpp
- AffectSpeedByZChange() : train_cmd.cpp
- AfterLoad_LinkGraphPauseControl() : linkgraphschedule.cpp , linkgraphschedule.h
- AfterLoadCompanyStats() : company_sl.cpp , saveload_internal.h
- AfterLoadGame() : afterload.cpp , saveload.cpp
- AfterLoadGRFs() : newgrf.cpp
- AfterLoadLinkGraphs() : linkgraph_sl.cpp , saveload_internal.h
- AfterLoadRoadStops() : saveload_internal.h , station_sl.cpp
- AfterLoadStoryBook() : saveload_internal.h , story_sl.cpp
- AfterLoadVehicles() : saveload_internal.h , vehicle_sl.cpp
- AgeVehicle() : vehicle.cpp , vehicle_func.h
- AI_DIR : fileio_type.h
- AI_LIBRARY_DIR : fileio_type.h
- AICE_AIRCRAFT_CHECK_ENGINE : newgrf_generic.h
- AICE_ROAD_CHECK_ENGINE : newgrf_generic.h
- AICE_ROAD_GET_FIRST_ENGINE : newgrf_generic.h
- AICE_ROAD_GET_NUMBER_ENGINES : newgrf_generic.h
- AICE_SHIP_CHECK_ENGINE : newgrf_generic.h
- AICE_SHIP_GET_FIRST_ENGINE : newgrf_generic.h
- AICE_SHIP_GET_NUMBER_ENGINES : newgrf_generic.h
- AICE_STATION_GET_STATION_ID : newgrf_generic.h
- AICE_TRAIN_CHECK_ELRAIL_ENGINE : newgrf_generic.h
- AICE_TRAIN_CHECK_MAGLEV_ENGINE : newgrf_generic.h
- AICE_TRAIN_CHECK_MONORAIL_ENGINE : newgrf_generic.h
- AICE_TRAIN_CHECK_RAIL_ENGINE : newgrf_generic.h
- AICE_TRAIN_GET_ELRAIL_WAGON : newgrf_generic.h
- AICE_TRAIN_GET_MAGLEV_WAGON : newgrf_generic.h
- AICE_TRAIN_GET_MONORAIL_WAGON : newgrf_generic.h
- AICE_TRAIN_GET_RAIL_WAGON : newgrf_generic.h
- AICE_TRAIN_GET_RAILTYPE : newgrf_generic.h
- AIConfigWidgets : ai_widget.h
- AIConstructionEvent : newgrf_generic.h
- AIDebugGlobalHotkeys() : ai_gui.cpp
- AIDebugWidgets : ai_widget.h
- AIListWidgets : ai_widget.h
- AIR_AIRCRAFT : aircraft.h
- AIR_CTOL : engine_type.h
- AIR_HELICOPTER : aircraft.h
- AIR_ROTOR : aircraft.h
- AIR_SHADOW : aircraft.h
- AIRCRAFT_MAX_FLYING_ALTITUDE : aircraft.h
- AIRCRAFT_MIN_FLYING_ALTITUDE : aircraft.h
- AircraftController() : aircraft_cmd.cpp
- AircraftEngineCargoSorter() : build_vehicle_gui.cpp
- AircraftEntersTerminal() : aircraft_cmd.cpp
- AircraftEventHandler_AtTerminal() : aircraft_cmd.cpp
- AircraftEventHandler_EnterHangar() : aircraft_cmd.cpp
- AircraftEventHandler_InHangar() : aircraft_cmd.cpp
- AircraftFlyingAltitude : aircraft.h
- AircraftGetEntryPoint() : aircraft_cmd.cpp
- AircraftHandleDestTooFar() : aircraft_cmd.cpp
- AircraftLandAirplane() : aircraft_cmd.cpp
- AircraftLeaveHangar() : aircraft_cmd.cpp , aircraft.h
- AircraftNextAirportPos_and_Order() : aircraft.h , aircraft_cmd.cpp
- AircraftRangeSorter() : build_vehicle_gui.cpp
- AircraftSpeedLimits : aircraft_cmd.cpp
- AircraftStateHandler : aircraft_cmd.cpp
- AircraftSubType : aircraft.h
- AircraftSubTypeBits : engine_type.h
- AircraftVehicleChangeInfo() : newgrf.cpp
- AirpAnimationTrigger : newgrf_animation_type.h
- AIRPORT : airport.cpp
- AIRPORT_CLOSED_block : airport.h
- AIRPORT_GENERIC : airport.cpp
- AirportBuildAutomata() : airport.cpp
- AirportChangeInfo() : newgrf.cpp
- AirportClass : newgrf_airport.h
- AirportClassID : newgrf_airport.h
- AirportFindFreeHelipad() : aircraft_cmd.cpp
- AirportFindFreeTerminal() : aircraft_cmd.cpp
- AirportGetNearestTown() : station_cmd.cpp
- AirportGetNofElements() : airport.cpp
- AirportHasBlock() : aircraft_cmd.cpp
- AirportMaintenanceCost() : station.cpp , station_func.h
- AirportMovementStates : airport.h
- AirportMovingDataFlags : airport.h
- AirportPickerWidgets : airport_widget.h
- AirportSetBlocks() : aircraft_cmd.cpp
- AirportTileCallbackMask : newgrf_callbacks.h
- AirportToolbarGlobalHotkeys() : airport_gui.cpp
- AirportToolbarWidgets : airport_widget.h
- AirportTypes : airport.h
- AirVehicleFlags : aircraft.h
- AISettingsWidgets : ai_widget.h
- Align() : math_func.hpp
- AlignPtr() : math_func.hpp
- AlignTileToGrid() : town_cmd.cpp
- ALL_GROUP : group_type.h
- AllEqual() : window_gui.h
- AllocaM : alloc_func.hpp
- AllocateMap() : map_func.h , map.cpp
- AllocateRailType() : rail.h , rail_cmd.cpp
- AllocateRoadType() : road_cmd.cpp , road.h
- AllocateSound() : newgrf_sound.cpp , newgrf_sound.h
- AllocateSpecToStation() : newgrf_station.h , newgrf_station.cpp
- AllocateToolbar() : toolbar_gui.cpp , toolbar_gui.h
- AllocateWindowDescFront() : window_gui.h
- AllocHeightMap() : tgp.cpp
- AllowedPPPonPCP : elrail_data.h
- AlterGroupMode : group_cmd.h
- AlterVehicleListOrder() : newgrf_engine.h , newgrf_engine.cpp
- AmbientSoundEffect() : newgrf_generic.h
- AmbientSoundEffectCallback() : newgrf_generic.cpp
- AMD : airport_movement.h
- AMED_BRAKE : airport.h
- AMED_EXACTPOS : airport.h
- AMED_HELI_LOWER : airport.h
- AMED_HELI_RAISE : airport.h
- AMED_HOLD : airport.h
- AMED_LAND : airport.h
- AMED_NOSPDCLAMP : airport.h
- AMED_SLOWTURN : airport.h
- AMED_TAKEOFF : airport.h
- amplitude_t : tgp.cpp
- ANIM_CURSOR_END : animcursors.h
- ANIM_CURSOR_LINE : animcursors.h
- ANIM_STATUS_LOOPING : newgrf_animation_type.h
- ANIM_STATUS_NO_ANIMATION : newgrf_animation_type.h
- ANIM_STATUS_NON_LOOPING : newgrf_animation_type.h
- AnimateAnimatedTiles() : animated_tile_func.h , animated_tile.cpp
- AnimateNewObjectTile() : newgrf_object.h , newgrf_object.cpp
- AnimateTile_Town() : town_cmd.cpp
- ANIMCURSOR_BUILDSIGNALS : sprites.h
- ANIMCURSOR_DEMOLISH : sprites.h
- ANIMCURSOR_FLAG : sprites.h
- ANIMCURSOR_LOWERLAND : sprites.h
- ANIMCURSOR_PICKSTATION : sprites.h
- ANIMCURSOR_RAISELAND : sprites.h
- APC_BEGIN : newgrf_airport.h
- APC_HELIPORT : newgrf_airport.h
- APC_HUB : newgrf_airport.h
- APC_LARGE : newgrf_airport.h
- APC_MAX : newgrf_airport.h
- APC_SMALL : newgrf_airport.h
- AppendPathSeparator() : fileio_func.h , fileio.cpp
- AppendStaticGRFConfigs() : newgrf_config.cpp , newgrf_config.h
- AppendToGRFConfigList() : newgrf_config.h , newgrf_config.cpp
- ApplyFoundationToSlope() : landscape.h , landscape.cpp
- ApplyPixelFoundationToSlope() : landscape.h
- AreCompanyManagerFaceBitsValid() : company_manager_face.h
- ArrangeTrains() : train_cmd.cpp
- ArrowWidgetValues : widget_type.h
- AS : airport_defaults.h
- AS_ACCEL : ground_vehicle.hpp
- AS_BRAKE : ground_vehicle.hpp
- AS_GENERIC : airport_defaults.h
- AS_ND : airport_defaults.h
- ASCII_LETTERSTART : spritefontcache.cpp
- AskUnsafeUnpauseCallback() : misc_cmd.cpp
- AsyncSaveFinishProc : saveload.cpp
- AT : airporttiles.h
- AT_COMMUTER : airport.h
- AT_DUMMY : airport.h
- AT_HELIDEPOT : airport.h
- AT_HELIPORT : airport.h
- AT_HELISTATION : airport.h
- AT_INTERCON : airport.h
- AT_INTERNATIONAL : airport.h
- AT_INVALID : airport.h
- AT_LARGE : airport.h
- AT_METROPOLITAN : airport.h
- AT_NOANIM : airporttiles.h
- AT_OILRIG : airport.h
- AT_SMALL : airport.h
- ATP_TTDP_HELIPORT : newgrf_airport.h
- ATP_TTDP_LARGE : newgrf_airport.h
- ATP_TTDP_OILRIG : newgrf_airport.h
- ATP_TTDP_SMALL : newgrf_airport.h
- AutoreplaceMap : vehicle.cpp
- AUTOSAVE_DIR : fileio_type.h
- AutoslopeCheckForEntranceEdge() : autoslope.h
- AutoslopeEnabled() : autoslope.h
- AVI : engines.h
- AWV_DECREASE : widget_type.h
- AWV_INCREASE : widget_type.h
- AWV_LEFT : widget_type.h
- AWV_RIGHT : widget_type.h
- Axis : direction_type.h
- AXIS_END : direction_type.h
- AXIS_X : direction_type.h
- AXIS_Y : direction_type.h
- AxisToDiagDir() : direction_func.h
- AxisToDirection() : direction_func.h
- AxisToRoadBits() : road_func.h
- AxisToTrack() : track_func.h
- AxisToTrackBits() : track_func.h
- AyStar_CalculateG : aystar.h
- AyStar_CalculateH : aystar.h
- AYSTAR_DONE : aystar.h
- AYSTAR_EMPTY_OPENLIST : aystar.h
- AyStar_EndNodeCheck : aystar.h
- AYSTAR_FOUND_END_NODE : aystar.h
- AyStar_FoundEndNode : aystar.h
- AyStar_GetNeighbours : aystar.h
- AYSTAR_INVALID_NODE : aystar.h
- AYSTAR_LIMIT_REACHED : aystar.h
- AYSTAR_NO_PATH : aystar.h
- AYSTAR_STILL_BUSY : aystar.h
- AyStarNodeUserDataType : npf.cpp
- AystarStatus : aystar.h