OpenTTD Source: Globals

OpenTTD Source 13.2.1

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

### - d -

- DA_ALWAYS_GO : order_type.h
- DA_SERVICE : order_type.h
- DA_STOP : order_type.h
- DataHandler : newgrf.cpp
- Date : date_type.h
- DateFract : date_type.h
- Day : date_type.h
- DAY_TICKS : date_type.h
- DAYS_IN_LEAP_YEAR : date_type.h
- DAYS_IN_YEAR : date_type.h
- DAYS_TILL : date_type.h
- DAYS_TILL_ORIGINAL_BASE_YEAR : date_type.h
- DC_ALL_TILES : command_type.h
- DC_AUTO : command_type.h
- DC_AUTOREPLACE : command_type.h
- DC_BANKRUPT : command_type.h
- DC_EXEC : command_type.h
- DC_FORCE_CLEAR_TILE : command_type.h
- DC_NO_CARGO_CAP_CHECK : command_type.h
- DC_NO_MODIFY_TOWN_RATING : command_type.h
- DC_NO_TEST_TOWN_RATING : command_type.h
- DC_NO_WATER : command_type.h
- DC_NONE : command_type.h
- DC_QUERY_COST : command_type.h
- DDSP_BUILD_BRIDGE : viewport_type.h
- DDSP_BUILD_BUSSTOP : viewport_type.h
- DDSP_BUILD_OBJECT : viewport_type.h
- DDSP_BUILD_SIGNALS : viewport_type.h
- DDSP_BUILD_STATION : viewport_type.h
- DDSP_BUILD_TRUCKSTOP : viewport_type.h
- DDSP_CONVERT_RAIL : viewport_type.h
- DDSP_CONVERT_ROAD : viewport_type.h
- DDSP_CREATE_DESERT : viewport_type.h
- DDSP_CREATE_RIVER : viewport_type.h
- DDSP_CREATE_ROCKS : viewport_type.h
- DDSP_CREATE_WATER : viewport_type.h
- DDSP_DEMOLISH_AREA : viewport_type.h
- DDSP_LEVEL_AREA : viewport_type.h
- DDSP_LOWER_AND_LEVEL_AREA : viewport_type.h
- DDSP_PLACE_AUTOROAD : viewport_type.h
- DDSP_PLACE_RAIL : viewport_type.h
- DDSP_PLACE_ROAD_X_DIR : viewport_type.h
- DDSP_PLACE_ROAD_Y_DIR : viewport_type.h
- DDSP_PLANT_TREES : viewport_type.h
- DDSP_RAISE_AND_LEVEL_AREA : viewport_type.h
- DDSP_REMOVE_BUSSTOP : viewport_type.h
- DDSP_REMOVE_STATION : viewport_type.h
- DDSP_REMOVE_TRUCKSTOP : viewport_type.h
- DeallocateSpecFromStation() : newgrf_station.cpp , newgrf_station.h
- Debug : debug.h
- DebugPrint() : debug.cpp , debug.h
- DebugReconsiderSendRemoteMessages() : debug.cpp , debug.h
- DebugSendRemoteMessages() : debug.cpp , debug.h
- DecHouseProcessingTime() : town_map.h
- DECLARE_ENUM_AS_BIT_SET : enum_type.hpp , company_manager_face.h
- DECLARE_POSTFIX_INCREMENT : enum_type.hpp
- DecloneOrder() : order_cmd.cpp
- DecodeHexNibble() : settings.cpp
- DecodeHexText() : settings.cpp
- DecodeMonitorCargoType() : cargomonitor.h
- DecodeMonitorCompany() : cargomonitor.h
- DecodeMonitorIndustry() : cargomonitor.h
- DecodeMonitorTown() : cargomonitor.h
- DecodeSingleSprite() : grf.cpp
- DecreaseBuildingCount() : newgrf_house.cpp , newgrf_house.h
- DecreaseVehicleValue() : vehicle.cpp , vehicle_func.h
- DecrementTreeCounter() : tree_cmd.cpp
- DEF_CONSOLE_CMD() : console_cmds.cpp
- DEF_CONSOLE_HOOK() : console_cmds.cpp
- DEF_DESERT_COVERAGE : tile_type.h
- DEF_END_YEAR : date_type.h
- DEF_SNOW_COVERAGE : tile_type.h
- DEF_SNOWLINE_HEIGHT : tile_type.h
- DEF_START_YEAR : date_type.h
- DEFAULT_GROUP : group_type.h
- DEFAULT_RAINFOREST_TREE_STEPS : tree_cmd.cpp
- default_sf : fluidsynth.cpp
- DEFAULT_TREE_STEPS : tree_cmd.cpp
- DEFAULTS_GROUP_NAME : settingsgen.cpp
- DEFINE_NEWGRF_CLASS_METHOD : newgrf_class_func.h
- DEFINE_POOL_METHOD : pool_func.hpp
- DefineGotoLabel() : newgrf.cpp
- DeleteAllMessages() : window.cpp , window_func.h
- DeleteAnimatedTile() : animated_tile.cpp , animated_tile_func.h
- DeleteDepotHighlightOfVehicle() : depot_func.h , depot_gui.cpp
- DeleteEntryFromSpriteCache() : spritecache.cpp
- DeleteGRFPresetFromConfig() : settings.cpp , settings_func.h
- DeleteGroupHighlightOfVehicle() : group_gui.cpp , group_gui.h
- DeleteIndustryNews() : news_func.h , news_gui.cpp
- DeleteInvalidEngineNews() : news_func.h , news_gui.cpp
- DeleteLastRoadVeh() : roadveh_cmd.cpp
- DeleteLastWagon() : train_cmd.cpp
- DeleteNewGRFInspectWindow() : newgrf_debug.h , newgrf_debug_gui.cpp
- DeleteNewsItem() : news_gui.cpp
- DeleteOrder() : order_base.h , order_cmd.cpp
- DeleteOrderWarnings() : order_cmd.cpp
- DeleteRenameSignWindow() : signs_func.h , signs_gui.cpp
- DeleteStaleLinks() : station_cmd.cpp
- DeleteStationIfEmpty() : station_cmd.cpp
- DeleteStationNews() : news_func.h , news_gui.cpp
- DeleteSubsidyWith() : subsidy.cpp , subsidy_func.h
- DeleteVehicleNews() : news_func.h , news_gui.cpp
- DeleteVehicleOrders() : order_cmd.cpp , order_func.h
- DeliverGoods() : economy.cpp
- DeliverGoodsToIndustry() : economy.cpp
- Delta() : math_func.hpp
- DEPOT_PART_NORTH : water_map.h
- DEPOT_PART_SOUTH : water_map.h
- DepotCommand : vehicle_type.h
- DepotID : depot_type.h
- DepotPart : water_map.h
- DepotWidgets : depot_widget.h
- DescSorter() : window.cpp
- DeserializeGRFIdentifier() : game_info.cpp , game_info.h
- DeserializeGRFIdentifierWithName() : game_info.cpp , game_info.h
- DeserializeNetworkGameInfo() : game_info.cpp , game_info.h
- DestType : network_type.h
- DESTTYPE_BROADCAST : network_type.h
- DESTTYPE_CLIENT : network_type.h
- DESTTYPE_TEAM : network_type.h
- DetailedFileType : fileio_type.h
- DetermineBasePaths() : fileio.cpp
- DeterminePaths() : fileio.cpp , fileio_func.h
- DeterminePluralForm() : strings.cpp
- DeterministicSpriteGroupAdjustOperation : newgrf_spritegroup.h
- DFT_FIOS_DIR : fileio_type.h
- DFT_FIOS_DIRECT : fileio_type.h
- DFT_FIOS_DRIVE : fileio_type.h
- DFT_FIOS_PARENT : fileio_type.h
- DFT_GAME_FILE : fileio_type.h
- DFT_HEIGHTMAP_BMP : fileio_type.h
- DFT_HEIGHTMAP_PNG : fileio_type.h
- DFT_INVALID : fileio_type.h
- DFT_OLD_GAME_FILE : fileio_type.h
- DIAGDIR_BEGIN : direction_type.h
- DIAGDIR_END : direction_type.h
- diagdir_names : dbg_helpers.cpp
- DIAGDIR_NE : direction_type.h
- DIAGDIR_NW : direction_type.h
- DIAGDIR_SE : direction_type.h
- DIAGDIR_SW : direction_type.h
- DiagdirBetweenTiles() : map_func.h
- DiagDirDiff : direction_type.h
- DIAGDIRDIFF_90LEFT : direction_type.h
- DIAGDIRDIFF_90RIGHT : direction_type.h
- DIAGDIRDIFF_BEGIN : direction_type.h
- DIAGDIRDIFF_END : direction_type.h
- DIAGDIRDIFF_REVERSE : direction_type.h
- DIAGDIRDIFF_SAME : direction_type.h
- DiagDirDifference() : direction_func.h
- DiagDirection : direction_type.h
- DiagdirReachesTrackdirs() : track_func.h
- DiagdirReachesTracks() : track_func.h
- DiagDirToAxis() : direction_func.h
- DiagDirToDiagTrack() : track_func.h
- DiagDirToDiagTrackBits() : track_func.h
- DiagDirToDiagTrackdir() : track_func.h
- DiagDirToDir() : direction_func.h
- DiagDirToRoadBits() : road_func.h
- DIR_BEGIN : direction_type.h
- DIR_E : direction_type.h
- DIR_END : direction_type.h
- DIR_N : direction_type.h
- DIR_NE : direction_type.h
- DIR_NW : direction_type.h
- DIR_S : direction_type.h
- DIR_SE : direction_type.h
- DIR_SW : direction_type.h
- DIR_W : direction_type.h
- DirDiff : direction_type.h
- DIRDIFF_45LEFT : direction_type.h
- DIRDIFF_45RIGHT : direction_type.h
- DIRDIFF_90LEFT : direction_type.h
- DIRDIFF_90RIGHT : direction_type.h
- DIRDIFF_REVERSE : direction_type.h
- DIRDIFF_SAME : direction_type.h
- DirDifference() : direction_func.h
- Direction : direction_type.h
- DirToDiagDir() : direction_func.h
- DirtyCompanyInfrastructureWindows() : company_gui.cpp , company_gui.h
- DisableEngineForCompany() : engine.cpp
- DisableGrf() : newgrf.cpp
- DisableStaticNewGRFInfluencingNonStaticNewGRFs() : newgrf.cpp
- DisallowedPPPofTrackAtPCP : elrail_data.h
- DisallowedRoadDirections : road_type.h
- Disaster_CoalMine_Init() : disaster_vehicle.cpp
- Disaster_Helicopter_Init() : disaster_vehicle.cpp
- Disaster_Small_Ufo_Init() : disaster_vehicle.cpp
- Disaster_Zeppeliner_Init() : disaster_vehicle.cpp
- DisasterSubType : disaster_vehicle.h
- DisasterTick_Aircraft() : disaster_vehicle.cpp
- DisasterTick_Airplane() : disaster_vehicle.cpp
- DisasterTick_Big_Ufo() : disaster_vehicle.cpp
- DisasterTick_Big_Ufo_Destroyer() : disaster_vehicle.cpp
- DisasterTick_Helicopter() : disaster_vehicle.cpp
- DisasterTick_Helicopter_Rotors() : disaster_vehicle.cpp
- DisasterTick_Submarine() : disaster_vehicle.cpp
- DisasterTick_Ufo() : disaster_vehicle.cpp
- DisasterTick_Zeppeliner() : disaster_vehicle.cpp
- DispatchHoverEvent() : window.cpp
- DispatchLeftClickEvent() : window.cpp
- DispatchMouseWheelEvent() : window.cpp
- DispatchRightClickEvent() : window.cpp
- DisplayOptions : openttd.h
- DisplayVehicleSortDropDown() : build_vehicle_gui.cpp , engine_gui.h
- DistanceFromEdge() : map.cpp , map_func.h
- DistanceFromEdgeDir() : map.cpp , map_func.h
- DistanceManhattan() : map_func.h , map.cpp
- DistanceMax() : map.cpp , map_func.h
- DistanceMaxPlusManhattan() : map.cpp , map_func.h
- DistanceSquare() : map.cpp , map_func.h
- DistributeCommandPacket() : network_command.cpp
- DistributeQueue() : network_command.cpp
- DistributionType : linkgraph_type.h
- DivAwayFromZero() : math_func.hpp
- DivideApprox() : math_func.cpp , math_func.hpp
- DO_FULL_ANIMATION : openttd.h
- DO_FULL_DETAIL : openttd.h
- DO_SHOW_COMPETITOR_SIGNS : openttd.h
- DO_SHOW_SIGNS : openttd.h
- DO_SHOW_STATION_NAMES : openttd.h
- DO_SHOW_TOWN_NAMES : openttd.h
- DO_SHOW_WAYPOINT_NAMES : openttd.h
- do_start : dmusic.cpp , win32_m.cpp
- do_stop : dmusic.cpp , win32_m.cpp
- DoAutoOrNetsave() : saveload.cpp , saveload.h
- DoAutosave() : openttd.cpp
- DoBuildLock() : water_cmd.cpp
- DockToolbarGlobalHotkeys() : dock_gui.cpp
- DockToolbarWidgets : dock_widget.h
- DoClearBridge() : tunnelbridge_cmd.cpp
- DoClearTownHouseHelper() : town_cmd.cpp
- DoClearTunnel() : tunnelbridge_cmd.cpp
- DoCmdStartStopVehicle() : autoreplace_cmd.cpp
- DoCommandFlag : command_type.h
- DoCreateNewIndustry() : industry_cmd.cpp
- DoCreateTown() : town_cmd.cpp
- DoDrawVehicle() : vehicle.cpp
- DoDryUp() : water_cmd.cpp
- DoExitSave() : saveload.h , saveload.cpp
- DoFloodTile() : water.h , water_cmd.cpp
- DoLoad() : saveload.cpp
- DoReseedIndustry() : newgrf_industrytiles.cpp
- DoSave() : saveload.cpp
- DoScanNewGRFFiles() : newgrf_config.cpp
- DoScanWorkingDirectory() : fileio.cpp
- DoSelectCompanyManagerFace() : company_gui.cpp
- DoStartupNewCompany() : company_cmd.cpp , openttd.cpp , afterload.cpp
- DoTrainPathfind() : train_cmd.cpp
- DoTriggerIndustryTile() : newgrf_industrytiles.cpp
- DoWatchedCargoCallback() : newgrf_house.cpp
- DoZoomInOutWindow() : viewport_func.h , main_gui.cpp
- DRAW_STRING_BUFFER : gfx_func.h
- DrawAircraftDetails() : aircraft_gui.cpp , vehicle_gui.cpp
- DrawAircraftImage() : aircraft_gui.cpp , vehicle_gui.h
- DrawAircraftPurchaseInfo() : build_vehicle_gui.cpp
- DrawArrowButtons() : settings_gui.h , settings_gui.cpp
- DrawAutorailSelection() : viewport.cpp
- DrawBoolButton() : settings_gui.cpp , settings_gui.h
- DrawBox() : gfx.cpp , gfx_func.h
- DrawBridgeMiddle() : bridge.h , tunnelbridge_cmd.cpp
- DrawBridgePillars() : tunnelbridge_cmd.cpp
- DrawBridgeRoadBits() : tunnelbridge_cmd.cpp
- DrawButtonDropdown() : widget.cpp
- DrawCanalWater() : water_cmd.cpp
- DrawCaption() : widget.cpp , window_gui.h
- DrawCargoIcons() : station_gui.cpp
- DrawCategories() : company_gui.cpp
- DrawCategory() : company_gui.cpp
- DrawCharCentered() : gfx.cpp , gfx_func.h
- DrawCloseBox() : widget.cpp
- DrawCommonTileSeq() : sprite.cpp
- DrawCommonTileSeqInGUI() : sprite.cpp , sprite.h
- DrawCompanyIcon() : company_gui.h , network_gui.cpp , company_cmd.cpp
- DrawCompanyManagerFace() : company_gui.cpp , company_manager_face.h
- DrawDebugBox() : widget.cpp
- DrawDefSizeBox() : widget.cpp
- DrawDirtyBlocks() : gfx.cpp , gfx_func.h
- DrawDropDownButton() : settings_gui.cpp , settings_gui.h
- DrawEngineList() : build_vehicle_gui.cpp , autoreplace_gui.cpp
- DrawFoundation() : landscape.h , landscape.cpp
- DrawFrame() : widget.cpp
- DrawFrameRect() : window_gui.h , widget.cpp
- DrawGroundSprite() : viewport.cpp , viewport_func.h
- DrawGroundSpriteAt() : viewport_func.h , viewport.cpp
- DrawHorizontalScrollbar() : widget.cpp
- DrawImageButtons() : widget.cpp
- DrawIMECompositionString() : win32_v.cpp
- DrawInset() : widget.cpp
- DrawLabel() : widget.cpp
- DrawLayoutLine() : gfx.cpp
- DrawMatrix() : widget.cpp
- DrawNewGRFTileSeq() : sprite.h
- DrawNewGRFTileSeqInGUI() : sprite.h
- DrawNewObjectTile() : newgrf_object.cpp , newgrf_object.h
- DrawNewObjectTileInGUI() : newgrf_object.h , newgrf_object.cpp
- DrawNewsString() : news_gui.cpp
- DrawOrderString() : order_gui.cpp , order_func.h
- DrawOrigTileSeq() : sprite.h
- DrawOrigTileSeqInGUI() : sprite.h
- DrawOverlappedWindow() : window.cpp
- DrawOverlappedWindowForAll() : gfx_func.h , window.cpp
- DrawPillar() : tunnelbridge_cmd.cpp
- DrawPillarColumn() : tunnelbridge_cmd.cpp
- DrawPrice() : company_gui.cpp
- DrawRailCatenary() : elrail_func.h , elrail.cpp
- DrawRailCatenaryOnBridge() : elrail_func.h , elrail.cpp
- DrawRailCatenaryOnTunnel() : elrail.cpp , elrail_func.h
- DrawRailCatenaryRailway() : elrail.cpp
- DrawRailTileSeq() : sprite.h
- DrawRailTileSeqInGUI() : sprite.h
- DrawResizeBox() : widget.cpp
- DrawRoadAsSnowDesert() : road_cmd.cpp
- DrawRoadBits() : road_cmd.cpp
- DrawRoadCatenary() : road_cmd.cpp , road_internal.h
- DrawRoadDepotSprite() : road_cmd.h , road_cmd.cpp
- DrawRoadDetail() : road_cmd.cpp
- DrawRoadOverlays() : road_func.h , road_cmd.cpp
- DrawRoadTypeCatenary() : road_cmd.cpp
- DrawRoadVehDetails() : vehicle_gui.cpp , roadveh_gui.cpp
- DrawRoadVehEngine() : roadveh_cmd.cpp , engine_gui.h
- DrawRoadVehImage() : roadveh_gui.cpp , vehicle_gui.h
- DrawSeaWater() : water_cmd.cpp
- DrawSelectionSprite() : viewport.cpp
- DrawShadeBox() : widget.cpp
- DrawShipDetails() : ship_gui.cpp , vehicle_gui.cpp
- DrawShipImage() : ship_gui.cpp , vehicle_gui.h
- DrawSliderWidget() : slider.cpp
- DrawSmallOrderList() : vehicle_gui.cpp
- DrawSprite() : gfx.cpp , gfx_func.h
- DrawSpriteToRgbaBuffer() : gfx.cpp , gfx_func.h
- DrawSpriteViewport() : gfx_func.h , gfx.cpp
- DrawStationCoverageAreaText() : station_gui.h , station_gui.cpp
- DrawStationTile() : newgrf_station.h , newgrf_station.cpp
- DrawStickyBox() : widget.cpp
- DrawString() : gfx_func.h , gfx.cpp , gfx_func.h
- DrawStringMultiLine() : gfx.cpp , gfx_func.h , gfx.cpp , gfx_func.h , gfx.cpp
- DrawText() : widget.cpp
- DrawTile_Road() : road_cmd.cpp
- DrawTile_Town() : town_cmd.cpp
- DrawTile_TunnelBridge() : tunnelbridge_cmd.cpp
- DrawTileHighlightType() : viewport.cpp
- DrawTileLayout() : newgrf_object.cpp
- DrawTileProc : tile_cmd.h
- DrawTileSelection() : viewport.cpp
- DrawTileSelectionRect() : viewport.cpp
- DrawTrackBits() : rail_cmd.cpp
- DrawTrackDetails() : rail_cmd.cpp
- DrawTrackFence() : rail_cmd.cpp
- DrawTrackFence_NE() : rail_cmd.cpp
- DrawTrackFence_NW() : rail_cmd.cpp
- DrawTrackFence_SE() : rail_cmd.cpp
- DrawTrackFence_SW() : rail_cmd.cpp
- DrawTrainDetails() : train_gui.cpp , vehicle_gui.cpp
- DrawTrainImage() : vehicle_gui.h , train_gui.cpp
- DrawVehicleEngine() : engine_gui.h , engine_gui.cpp
- DrawVehicleImage() : vehicle_gui.cpp , vehicle_gui.h
- DrawVehicleProfitButton() : vehicle_gui.cpp
- DrawVehiclePurchaseInfo() : build_vehicle_gui.cpp , vehicle_gui.h
- DrawVehicleRefitWindow() : vehicle_gui.cpp
- DrawVerticalScrollbar() : widget.cpp
- DrawWaterDepot() : water_cmd.cpp
- DrawWaterEdges() : water_cmd.cpp
- DrawWaterLock() : water_cmd.cpp
- DrawWaterSprite() : water_cmd.cpp
- DrawWaterTileStruct() : water_cmd.cpp
- DrawWaypointSprite() : waypoint.cpp , waypoint_func.h
- DrawYearCategory() : company_gui.cpp
- DrawYearColumn() : company_gui.cpp
- DRD_BOTH : road_type.h
- DRD_END : road_type.h
- DRD_NONE : road_type.h
- DRD_NORTHBOUND : road_type.h
- DRD_SOUTHBOUND : road_type.h
- DropDownAdmin : network_gui.cpp
- DropDownList : dropdown_type.h
- DropdownMenuWidgets : dropdown_widget.h
- DSGA_OP_ADD : newgrf_spritegroup.h
- DSGA_OP_AND : newgrf_spritegroup.h
- DSGA_OP_MUL : newgrf_spritegroup.h
- DSGA_OP_OR : newgrf_spritegroup.h
- DSGA_OP_ROR : newgrf_spritegroup.h
- DSGA_OP_RST : newgrf_spritegroup.h
- DSGA_OP_SAR : newgrf_spritegroup.h
- DSGA_OP_SCMP : newgrf_spritegroup.h
- DSGA_OP_SDIV : newgrf_spritegroup.h
- DSGA_OP_SHL : newgrf_spritegroup.h
- DSGA_OP_SHR : newgrf_spritegroup.h
- DSGA_OP_SMAX : newgrf_spritegroup.h
- DSGA_OP_SMIN : newgrf_spritegroup.h
- DSGA_OP_SMOD : newgrf_spritegroup.h
- DSGA_OP_STO : newgrf_spritegroup.h
- DSGA_OP_STOP : newgrf_spritegroup.h
- DSGA_OP_SUB : newgrf_spritegroup.h
- DSGA_OP_UCMP : newgrf_spritegroup.h
- DSGA_OP_UDIV : newgrf_spritegroup.h
- DSGA_OP_UMAX : newgrf_spritegroup.h
- DSGA_OP_UMIN : newgrf_spritegroup.h
- DSGA_OP_UMOD : newgrf_spritegroup.h
- DSGA_OP_XOR : newgrf_spritegroup.h
- DT_ASYMMETRIC : linkgraph_type.h
- DT_MANUAL : linkgraph_type.h
- DT_MAX_NONSYMMETRIC : linkgraph_type.h
- DT_SYMMETRIC : linkgraph_type.h
- DumpDebugFacilityNames() : debug.h , debug.cpp
- DumpGroup() : settingsgen.cpp
- DumpLine() : settingsgen.cpp
- DumpSections() : settingsgen.cpp
- DuplicateTileTable() : newgrf.cpp
- DynamicPlaceIndustriesWidgets : industry_widget.h