OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

- All
- Functions
- Variables
- Typedefs
- Enumerations
- Enumerator
- Macros

- _
- a
- b
- c
- d
- e
- f
- g
- h
- i
- j
- k
- l
- m
- n
- o
- p
- q
- r
- s
- t
- u
- v
- w
- x
- y
- z

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_RAIL_OVERLAP : 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_SIGNALS : viewport_type.h
- DDSP_BUILD_STATION : viewport_type.h
- DDSP_BUILD_TRUCKSTOP : viewport_type.h
- DDSP_CONVERT_RAIL : 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.cpp
- DEBUG : debug.h
- debug_print() : debug.cpp
- 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
- DEF_CONSOLE_CMD() : console_cmds.cpp
- DEF_CONSOLE_HOOK() : console_cmds.cpp
- DEF_MAX_HEIGHTLEVEL : tile_type.h
- DEF_RAILTYPE_FIRST : rail_type.h
- DEF_RAILTYPE_LAST : rail_type.h
- DEF_RAILTYPE_MOST_USED : rail_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_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
- DeleteAllNonVitalWindows() : window.cpp , window_func.h
- DeleteAnimatedTile() : animated_tile.cpp , animated_tile_func.h
- DeleteCompanyWindows() : company_gui.h , window.cpp
- DeleteConstructionWindows() : window.cpp , window_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
- DeleteNonVitalWindows() : window.cpp , window_func.h
- 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
- DeleteWindowByClass() : window.cpp , window_func.h
- DeleteWindowById() : window.cpp , window_func.h
- DeliverGoods() : economy.cpp
- DeliverGoodsToIndustry() : economy.cpp
- Delta() : math_func.hpp
- DEPOT_DONT_CANCEL : vehicle_type.h
- DEPOT_LOCATE_HANGAR : vehicle_type.h
- DEPOT_MASS_SEND : vehicle_type.h
- DEPOT_PART_NORTH : water_map.h
- DEPOT_PART_SOUTH : water_map.h
- DEPOT_SERVICE : vehicle_type.h
- DepotCommand : vehicle_type.h
- DepotID : depot_type.h
- DepotPart : water_map.h
- DepotWidgets : depot_widget.h
- DescSorter() : window.cpp
- 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_REVERSE : direction_type.h
- DIAGDIRDIFF_SAME : direction_type.h
- DiagDirDifference() : direction_func.h
- DiagDirection : direction_type.h
- DiagDirectionByte : 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
- DirectionByte : direction_type.h
- DirToDiagDir() : direction_func.h
- DirtyCompanyInfrastructureWindows() : company_gui.cpp , company_gui.h
- DisableGrf() : newgrf.cpp
- DisableStaticNewGRFInfluencingNonStaticNewGRFs() : newgrf.cpp
- DisallowedPPPofTrackAtPCP : elrail_data.h
- DisallowedRoadDirections : road_map.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
- DisplaySplashImage() : splash.cpp , splash.h
- DisplayVehicleSortDropDown() : build_vehicle_gui.cpp , engine_gui.h
- DistanceFromEdge() : map.cpp , map_func.h
- DistanceFromEdgeDir() : map.cpp , map_func.h
- DistanceManhattan() : map.cpp , map_func.h
- 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
- DivideApprox() : math_func.hpp , math_func.cpp
- 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
- 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
- DoCommand() : command.cpp , command_func.h , command.cpp
- DoCommandFlag : command_type.h
- DoCommandP() : command.cpp , command_func.h
- DoCommandPInternal() : command.cpp , command_func.h
- DoCreateNewIndustry() : industry_cmd.cpp
- DoCreateTown() : town_cmd.cpp
- DoDrawVehicle() : vehicle.cpp
- DoDryUp() : water_cmd.cpp
- DoExitSave() : saveload.cpp , saveload.h
- DoFloodTile() : water.h , water_cmd.cpp
- DoLoad() : saveload.cpp
- DoReseedIndustry() : newgrf_industrytiles.cpp
- DoSave() : saveload.cpp
- DoSave_LGRJ() : linkgraph_sl.cpp
- DoSave_LGRP() : linkgraph_sl.cpp
- DoScanNewGRFFiles() : newgrf_config.cpp
- DoScanWorkingDirectory() : fileio.cpp
- DoSelectCompanyManagerFace() : company_gui.cpp
- DoStartupNewCompany() : company_cmd.cpp , afterload.cpp , openttd.cpp
- DoTrainPathfind() : train_cmd.cpp
- DoTriggerIndustryTile() : newgrf_industrytiles.cpp
- DoWatchedCargoCallback() : newgrf_house.cpp
- DoZoomInOutWindow() : main_gui.cpp , viewport_func.h
- DRAW_STRING_BUFFER : gfx_func.h
- DrawAircraftDetails() : vehicle_gui.cpp , aircraft_gui.cpp
- DrawAircraftImage() : aircraft_gui.cpp , vehicle_gui.h
- DrawAircraftPurchaseInfo() : build_vehicle_gui.cpp
- DrawArrowButtons() : settings_gui.cpp , settings_gui.h
- DrawAutorailSelection() : viewport.cpp
- DrawBoolButton() : settings_gui.h , settings_gui.cpp
- DrawBox() : gfx.cpp , gfx_func.h
- DrawBridgeMiddle() : tunnelbridge_cmd.cpp , bridge.h
- DrawBridgePillars() : tunnelbridge_cmd.cpp
- DrawBridgeTramBits() : tunnelbridge_cmd.cpp
- DrawButtonDropdown() : widget.cpp
- DrawCanalWater() : water_cmd.cpp
- DrawCaption() : widget.cpp , window_gui.h
- DrawCargoIcons() : station_gui.cpp
- DrawCategories() : company_gui.cpp
- DrawCharCentered() : gfx.cpp , gfx_func.h
- DrawCloseBox() : widget.cpp
- DrawCommonTileSeq() : sprite.cpp
- DrawCommonTileSeqInGUI() : sprite.cpp , sprite.h
- DrawCompanyIcon() : company_cmd.cpp , company_gui.h , network_gui.cpp
- DrawCompanyManagerFace() : company_gui.cpp , company_manager_face.h
- DrawDebugBox() : widget.cpp
- DrawDefSizeBox() : widget.cpp
- DrawDirtyBlocks() : gfx.cpp , gfx_func.h
- DrawDropdown() : widget.cpp
- DrawDropDownButton() : settings_gui.cpp , settings_gui.h
- DrawEngineList() : build_vehicle_gui.cpp , autoreplace_gui.cpp
- DrawFoundation() : landscape.cpp , landscape.h
- DrawFrame() : widget.cpp
- DrawFrameRect() : window_gui.h , widget.cpp
- DrawGroundSprite() : viewport.cpp , viewport_func.h
- DrawGroundSpriteAt() : viewport.cpp , viewport_func.h
- 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.cpp , newgrf_object.h
- DrawNewsString() : news_gui.cpp
- DrawOrderString() : order_func.h , order_gui.cpp
- DrawOrigTileSeq() : sprite.h
- DrawOrigTileSeqInGUI() : sprite.h
- DrawOverlappedWindow() : window.cpp
- DrawOverlappedWindowForAll() : window.cpp , gfx_func.h
- DrawPillar() : tunnelbridge_cmd.cpp
- DrawPillarColumn() : tunnelbridge_cmd.cpp
- DrawPrice() : company_gui.cpp
- DrawRailCatenary() : elrail.cpp , elrail_func.h
- DrawRailCatenaryOnBridge() : elrail.cpp , elrail_func.h
- DrawRailCatenaryOnTunnel() : elrail_func.h , elrail.cpp
- DrawRailCatenaryRailway() : elrail.cpp
- DrawRailTileSeq() : sprite.h
- DrawRailTileSeqInGUI() : sprite.h
- DrawResizeBox() : widget.cpp
- DrawRoadAsSnowDesert() : road_cmd.cpp
- DrawRoadBits() : road_cmd.cpp
- DrawRoadCatenary() : road_internal.h , road_cmd.cpp
- DrawRoadDepotSprite() : road_cmd.cpp , road_cmd.h
- DrawRoadDetail() : road_cmd.cpp
- DrawRoadVehDetails() : vehicle_gui.cpp , roadveh_gui.cpp
- DrawRoadVehEngine() : engine_gui.h , roadveh_cmd.cpp
- DrawRoadVehImage() : vehicle_gui.h , roadveh_gui.cpp
- DrawSeaWater() : water_cmd.cpp
- DrawSelectionSprite() : viewport.cpp
- DrawShadeBox() : widget.cpp
- DrawShipDetails() : vehicle_gui.cpp , ship_gui.cpp
- DrawShipImage() : ship_gui.cpp , vehicle_gui.h
- DrawSprite() : gfx_func.h , gfx.cpp
- DrawSpriteViewport() : gfx.cpp , gfx_func.h
- DrawStationCoverageAreaText() : station_gui.cpp , station_gui.h
- DrawStationTile() : newgrf_station.h , newgrf_station.cpp
- DrawStickyBox() : widget.cpp
- DrawString() : gfx.cpp , gfx_func.h
- DrawStringMultiLine() : gfx_func.h , gfx.cpp , gfx_func.h
- DrawText() : widget.cpp
- DrawTile_Road() : road_cmd.cpp
- DrawTile_Town() : town_cmd.cpp
- DrawTile_TunnelBridge() : tunnelbridge_cmd.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() : vehicle_gui.cpp , train_gui.cpp
- DrawTrainImage() : train_gui.cpp , vehicle_gui.h
- DrawVehicleEngine() : engine_gui.cpp , engine_gui.h
- DrawVehicleImage() : vehicle_gui.h , vehicle_gui.cpp
- 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_func.h , waypoint.cpp
- DrawYearColumn() : company_gui.cpp
- DRD_BOTH : road_map.h
- DRD_END : road_map.h
- DRD_NONE : road_map.h
- DRD_NORTHBOUND : road_map.h
- DRD_SOUTHBOUND : road_map.h
- 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
- DumpSections() : settingsgen.cpp
- DuplicateGRFText() : newgrf_text.cpp , newgrf_text.h
- DuplicateTileTable() : newgrf.cpp
- DynamicPlaceIndustriesWidgets : industry_widget.h