OpenTTD Source: Globals

OpenTTD Source 15.0-beta1

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

### - r -

- Rail90DegTurnDisallowed() : rail.h
- RAIL_GROUND_BARREN : rail_map.h
- RAIL_GROUND_FENCE_HORIZ1 : rail_map.h
- RAIL_GROUND_FENCE_HORIZ2 : rail_map.h
- RAIL_GROUND_FENCE_NE : rail_map.h
- RAIL_GROUND_FENCE_NESW : rail_map.h
- RAIL_GROUND_FENCE_NW : rail_map.h
- RAIL_GROUND_FENCE_SE : rail_map.h
- RAIL_GROUND_FENCE_SENW : rail_map.h
- RAIL_GROUND_FENCE_SW : rail_map.h
- RAIL_GROUND_FENCE_VERT1 : rail_map.h
- RAIL_GROUND_FENCE_VERT2 : rail_map.h
- RAIL_GROUND_GRASS : rail_map.h
- RAIL_GROUND_HALF_SNOW : rail_map.h
- RAIL_GROUND_ICE_DESERT : rail_map.h
- RAIL_GROUND_WATER : rail_map.h
- RAIL_TILE_DEPOT : rail_map.h
- RAIL_TILE_NORMAL : rail_map.h
- RAIL_TILE_SIGNALS : rail_map.h
- RailBuildCost() : rail.h
- RailCatenarySprite : elrail_data.h
- RailClearCost() : rail.h
- RailConvertCost() : rail.h
- RailFenceOffset : rail.h
- RailGroundType : rail_map.h
- RailMaintenanceCost() : rail.h
- RailNoLevelCrossings() : rail.h
- RailTileType : rail_map.h
- RailToolbar_CtrlChanged() : rail_gui.cpp
- RailToolbarWidgets : rail_widget.h
- RailTrackBridgeOffset : rail.h
- RailTrackOffset : rail.h
- RailType : rail_type.h
- RAILTYPE_BEGIN : rail_type.h
- RAILTYPE_ELECTRIC : rail_type.h
- RAILTYPE_END : rail_type.h
- RAILTYPE_MAGLEV : rail_type.h
- RAILTYPE_MONO : rail_type.h
- RAILTYPE_RAIL : rail_type.h
- RailTypeChangeInfo() : newgrf.cpp
- RailTypeFlag : rail.h
- RailTypeFlags : rail.h
- RailTypeLabelList : rail.h
- RailTypes : rail_type.h
- RAILTYPES_ELECTRIC : rail_type.h
- RAILTYPES_MAGLEV : rail_type.h
- RAILTYPES_MONO : rail_type.h
- RAILTYPES_NONE : rail_type.h
- RAILTYPES_RAIL : rail_type.h
- RailTypeSpriteGroup : rail.h
- RAILVEH_MULTIHEAD : engine_type.h
- RAILVEH_SINGLEHEAD : engine_type.h
- RAILVEH_WAGON : engine_type.h
- RailVehicleChangeInfo() : newgrf.cpp
- RailVehicleTypes : engine_type.h
- RandomBytesWithFallback() : random_func.cpp, random_func.hpp
- RandomCompanyManagerFaceBits() : company_manager_face.h
- RandomDiagDir() : town_cmd.cpp
- RandomHeight() : tgp.cpp
- RandomRange() : random_func.hpp
- RandomTile : map_func.h
- RandomTileSeed() : map_func.h
- RateConversion() : mixer.cpp
- RATING_GROWTH_MAXIMUM : town_type.h
- RATING_GROWTH_UP_STEP : town_type.h
- RATING_INITIAL : town_type.h
- RATING_OUTSTANDING : town_type.h
- RATING_ROAD_DOWN_STEP_EDGE : town_type.h
- RATING_ROAD_DOWN_STEP_INNER : town_type.h
- RATING_ROAD_MINIMUM : town_type.h
- RATING_ROAD_NEEDED_HOSTILE : town_type.h
- RATING_ROAD_NEEDED_LENIENT : town_type.h
- RATING_ROAD_NEEDED_NEUTRAL : town_type.h
- RATING_ROAD_NEEDED_PERMISSIVE : town_type.h
- RATING_STATION_DOWN_STEP : town_type.h
- RATING_STATION_UP_STEP : town_type.h
- RATING_TUNNEL_BRIDGE_DOWN_STEP : town_type.h
- RATING_TUNNEL_BRIDGE_MINIMUM : town_type.h
- RATING_TUNNEL_BRIDGE_NEEDED_HOSTILE : town_type.h
- RATING_TUNNEL_BRIDGE_NEEDED_LENIENT : town_type.h
- RATING_TUNNEL_BRIDGE_NEEDED_NEUTRAL : town_type.h
- RATING_TUNNEL_BRIDGE_NEEDED_PERMISSIVE : town_type.h
- RATING_TUNNEL_BRIDGE_UP_STEP : town_type.h
- RDE_NEXT_TILE : roadveh.h
- RDE_TURNED : roadveh.h
- ReadByte() : oldloader.cpp, oldloader.h
- ReadByteFromFile() : oldloader.cpp
- ReadDWordAsString() : newgrf.cpp
- ReadFileToMem() : fileio.cpp, fileio_func.h
- ReadGRFSpriteOffsets() : spritecache.cpp, spritecache.h
- ReadHeightMap() : heightmap.cpp
- ReadHeightmapBMP() : heightmap.cpp
- ReadHeightmapBMPImageData() : heightmap.cpp
- ReadHeightmapPNG() : heightmap.cpp
- ReadHeightmapPNGImageData() : heightmap.cpp
- ReadLanguagePack() : language.h, strings.cpp
- ReadRawLanguageStrings() : game_text.cpp
- ReadRecolourSprite() : spritecache.cpp
- ReadSprite() : spritecache.cpp
- ReadSpriteLayout() : newgrf.cpp
- ReadSpriteLayoutRegisters() : newgrf.cpp
- ReadSpriteLayoutSprite() : newgrf.cpp
- ReadValue() : saveload.cpp, saveload.h
- ReadyForNextNewsItem() : news_gui.cpp
- ReadyForNextTickerItem() : news_gui.cpp
- ReallocError() : alloc_func.cpp, alloc_func.hpp
- ReallocT() : alloc_func.hpp
- ReallyClearObjectTile() : object_cmd.cpp
- RealMakeScreenshot() : screenshot.cpp
- RebuildSubsidisedSourceAndDestinationCache() : subsidy.cpp, subsidy_func.h
- RebuildTownCaches() : cachecheck.cpp, town_sl.cpp
- RECOLOUR_BIT : sprites.h
- RecomputePrices() : economy.cpp, economy_func.h
- ReconsiderGameScriptLanguage() : game_text.cpp, game_text.hpp
- RedrawScreenRect() : gfx_func.h, gfx.cpp
- RedrawSmallmap() : settings_table.cpp
- RedundantBridgeExistsNearby() : town_cmd.cpp
- REF_CARGO_PACKET : saveload.h
- REF_ENGINE_RENEWS : saveload.h
- REF_LINK_GRAPH : saveload.h
- REF_LINK_GRAPH_JOB : saveload.h
- REF_ORDER : saveload.h
- REF_ORDERLIST : saveload.h
- REF_ROADSTOPS : saveload.h
- REF_STATION : saveload.h
- REF_STORAGE : saveload.h
- REF_TOWN : saveload.h
- REF_VEHICLE : saveload.h
- REF_VEHICLE_OLD : saveload.h
- ReferenceToInt() : saveload.cpp
- RefitOptions : vehicle_gui.cpp
- RefitVehicle() : vehicle_cmd.cpp
- RegisterGameTranslation() : game_text.cpp, game_text.hpp
- ReInitAllWindows() : window.cpp, window_func.h
- ReinitGuiAfterToggleElrail() : rail_gui.cpp, rail_gui.h
- ReleaseDisastersTargetingIndustry() : disaster_vehicle.cpp, industry.h
- ReleaseDisasterVehicle() : disaster_vehicle.cpp, vehicle_func.h
- ReloadNewGRFData() : newgrf.h, afterload.cpp
- RelocateAllWindows() : window.cpp, window_gui.h
- RemapCoords() : landscape.h
- RemapCoords2() : landscape.h
- RemapNewGRFStringControlCode() : newgrf_text.cpp
- RemapOldStringID() : saveload_internal.h, strings_sl.cpp
- RemapTTOColour() : oldloader_sl.cpp
- RemoveAirport() : station_cmd.cpp
- RemoveAllEngineReplacement() : autoreplace.cpp, autoreplace_func.h
- RemoveAllEngineReplacementForCompany() : autoreplace_func.h
- RemoveBuoy() : waypoint_cmd.cpp, waypoint_func.h
- RemoveDock() : station_cmd.cpp
- RemoveDuplicatesFromGRFConfigList() : newgrf_config.cpp
- RemoveEngineReplacement() : autoreplace.cpp, autoreplace_func.h
- RemoveEngineReplacementForCompany() : autoreplace_func.h
- RemoveEntriesFromIni() : settings.cpp
- RemoveFirstTrack() : track_func.h
- RemoveFirstTrackdir() : track_func.h
- RemoveFromConsist() : train_cmd.cpp
- RemoveFromRailBaseStation() : station_cmd.cpp
- RemoveGenericRoadStop() : station_cmd.cpp
- RemoveHalftileSlope() : slope_func.h
- RemoveLock() : water_cmd.cpp
- RemoveNearbyStations() : town_cmd.cpp
- RemoveOrderFromAllVehicles() : order_cmd.cpp, order_func.h
- RemoveRailStation() : station_cmd.cpp
- RemoveRailWaypoint() : station_cmd.cpp
- RemoveRoad() : road_cmd.cpp
- RemoveRoadStop() : station_cmd.cpp
- RemoveRoadWaypointStop() : waypoint_cmd.cpp, station_cmd.cpp
- RemoveUnderscores() : console.cpp
- RenameSign() : signs_gui.cpp
- ReplaceAsteriskWithEmptyPassword() : settings_table.cpp
- ReplaceChain() : autoreplace_cmd.cpp
- ReplaceEnglishWords() : townname.cpp
- ReplaceFreeUnit() : autoreplace_cmd.cpp
- ReplaceVehicleWidgets : autoreplace_widget.h
- ReplaceWords() : townname.cpp
- ReportNewsProductionChangeIndustry() : industry_cmd.cpp
- RequestNewGRFScan() : openttd.cpp, openttd.h
- RerouteCargo() : station_func.h, station_cmd.cpp
- ReserveConsist() : economy.cpp
- ResetAllSettingsConfirmationCallback() : settings_gui.cpp
- ResetBridges() : bridge.h, tunnelbridge_cmd.cpp
- ResetCompanyLivery() : company_cmd.cpp, livery.h
- ResetCurrencies() : currency.cpp, currency.h
- ResetCustomAirports() : newgrf.cpp
- ResetCustomHouses() : newgrf.cpp
- ResetCustomIndustries() : newgrf.cpp
- ResetCustomObjects() : newgrf.cpp
- ResetCustomStations() : newgrf.cpp
- ResetGenericCallbacks() : newgrf_generic.cpp, newgrf_generic.h
- ResetGRFConfig() : newgrf_config.cpp, newgrf_config.h
- ResetHouseAge() : town_map.h
- ResetIndustries() : industry_cmd.cpp, industrytype.h
- ResetIndustryConstructionStage() : industry_map.h
- ResetLandscapeConfirmationCallback() : terraform_gui.cpp
- ResetNewGRF() : newgrf.cpp
- ResetNewGRFData() : newgrf.cpp, newgrf.h
- ResetNewGRFErrors() : newgrf.cpp
- ResetObjects() : newgrf_object.cpp, newgrf_object.h
- ResetObjectToPlace() : viewport.cpp, tilehighlight_func.h
- ResetOldNames() : saveload_internal.h, strings_sl.cpp
- ResetPersistentNewGRFData() : newgrf.cpp, newgrf.h
- ResetPriceBaseMultipliers() : economy.cpp, economy_func.h
- ResetRailTypes() : rail.h, rail_cmd.cpp
- ResetRestoreAllTransparency() : transparency.h
- ResetRoadTypes() : road.h, road_cmd.cpp
- ResetSaveloadData() : saveload.cpp
- ResetSets() : signal.cpp
- ResetSignalHandlers() : afterload.cpp
- ResetSignalVariant() : rail_gui.h, rail_gui.cpp
- ResetWindowSystem() : window_func.h, window.cpp
- ResizeWidgetValues : widget_type.h
- ResizeWindow() : window.cpp, window_func.h
- ResolveLoopProc() : address.cpp
- RestoreRandomSeeds() : random_func.hpp
- RestoreTextRefStackBackup() : newgrf_text.cpp, newgrf_text.h
- RestoreTrainBackup() : train_cmd.cpp
- RestoreTrainReservation() : station_cmd.cpp
- RestrictionMode : settings_gui.cpp
- ReverseDiagDir() : direction_func.h
- ReverseDir() : direction_func.h
- ReverseTrackdir() : track_func.h
- ReverseTrainDirection() : vehicle_sl.cpp, train_cmd.cpp
- ReverseTrainSwapVeh() : train_cmd.cpp, vehicle_sl.cpp
- RFO_FLAT_LEFT : rail.h
- RFO_FLAT_LOWER : rail.h
- RFO_FLAT_RIGHT : rail.h
- RFO_FLAT_UPPER : rail.h
- RFO_FLAT_X_NW : rail.h
- RFO_FLAT_X_SE : rail.h
- RFO_FLAT_Y_NE : rail.h
- RFO_FLAT_Y_SW : rail.h
- RFO_SLOPE_NE_NW : rail.h
- RFO_SLOPE_NE_SE : rail.h
- RFO_SLOPE_NW_NE : rail.h
- RFO_SLOPE_NW_SW : rail.h
- RFO_SLOPE_SE_NE : rail.h
- RFO_SLOPE_SE_SW : rail.h
- RFO_SLOPE_SW_NW : rail.h
- RFO_SLOPE_SW_SE : rail.h
- RGBToGrayscale() : heightmap.cpp
- RightClickClose : settings_type.h
- RIVER_OFFSET_DESERT_DISTANCE : water.h
- RiverMakeWider() : landscape.cpp
- RiverModifyDesertZone() : water_cmd.cpp
- RM_ADVANCED : settings_gui.cpp
- RM_ALL : settings_gui.cpp
- RM_BASIC : settings_gui.cpp
- RM_CHANGED_AGAINST_DEFAULT : settings_gui.cpp
- RM_CHANGED_AGAINST_NEW : settings_gui.cpp
- RM_END : settings_gui.cpp
- ROAD_ALL : road_type.h
- ROAD_DEPOT_TRACKBIT_FACTOR : economy_type.h
- ROAD_E : road_type.h
- ROAD_END : road_type.h
- ROAD_N : road_type.h
- ROAD_NE : road_type.h
- ROAD_NONE : road_type.h
- ROAD_NW : road_type.h
- ROAD_REMOVE : town.h
- ROAD_S : road_type.h
- ROAD_SE : road_type.h
- ROAD_STOP_TRACKBIT_FACTOR : economy_type.h
- ROAD_SW : road_type.h
- ROAD_TILE_CROSSING : road_map.h
- ROAD_TILE_DEPOT : road_map.h
- ROAD_TILE_NORMAL : road_map.h
- ROAD_W : road_type.h
- ROAD_X : road_type.h
- ROAD_Y : road_type.h
- RoadBits : road_type.h
- RoadBuildCost() : road.h
- RoadClearCost() : road.h
- RoadConvertCost() : road.h
- RoadFindPathToDest() : roadveh_cmd.cpp
- RoadMaintenanceCost() : road_func.h
- RoadNoLevelCrossing() : road.h
- Roadside : road_map.h
- ROADSIDE_BARREN : road_map.h
- ROADSIDE_GRASS : road_map.h
- ROADSIDE_GRASS_ROAD_WORKS : road_map.h
- ROADSIDE_PAVED : road_map.h
- ROADSIDE_PAVED_ROAD_WORKS : road_map.h
- ROADSIDE_STREET_LIGHTS : road_map.h
- ROADSIDE_TREES : road_map.h
- ROADSTOP_BUS : station_type.h
- ROADSTOP_CLASS_BEGIN : newgrf_roadstop.h
- ROADSTOP_CLASS_DFLT : newgrf_roadstop.h
- ROADSTOP_CLASS_MAX : newgrf_roadstop.h
- ROADSTOP_CLASS_WAYP : newgrf_roadstop.h
- ROADSTOP_DRAW_MODE_OVERLAY : newgrf_roadstop.h
- ROADSTOP_DRAW_MODE_ROAD : newgrf_roadstop.h
- ROADSTOP_DRAW_MODE_WAYP_GROUND : newgrf_roadstop.h
- ROADSTOP_END : station_type.h
- ROADSTOP_TRUCK : station_type.h
- RoadStopAvailabilityType : newgrf_roadstop.h
- RoadStopCallbackMask : newgrf_callbacks.h
- RoadStopClassID : newgrf_roadstop.h
- RoadStopDrawMode : newgrf_roadstop.h
- RoadStopRandomTrigger : newgrf_roadstop.h
- RoadStopSpecFlags : newgrf_roadstop.h
- RoadStopType : station_type.h
- ROADSTOPTYPE_ALL : newgrf_roadstop.h
- ROADSTOPTYPE_FREIGHT : newgrf_roadstop.h
- ROADSTOPTYPE_PASSENGER : newgrf_roadstop.h
- RoadStopUpdateCachedTriggers() : newgrf_roadstop.h
- RoadStopView : newgrf_roadstop.h
- RoadTileType : road_map.h
- RoadToolbar_CtrlChanged() : road_gui.cpp
- RoadToolbarWidgets : road_widget.h
- RoadType : road_type.h
- ROADTYPE_BEGIN : road_type.h
- ROADTYPE_END : road_type.h
- ROADTYPE_ROAD : road_type.h
- ROADTYPE_TRAM : road_type.h
- RoadTypeChangeInfo() : newgrf.cpp
- RoadTypeFlag : road.h
- RoadTypeFlags : road.h
- RoadTypeLabelList : road.h
- RoadTypes : road_type.h
- ROADTYPES_NONE : road_type.h
- ROADTYPES_ROAD : road_type.h
- ROADTYPES_TRAM : road_type.h
- RoadTypesAllowHouseHere() : town_cmd.cpp
- RoadTypeSpriteGroup : road.h
- RoadVehAccelerationModelChanged() : settings_table.cpp
- RoadVehArrivesAt() : roadveh_cmd.cpp
- RoadVehEngineCapacitySorter() : build_vehicle_gui.cpp
- RoadVehicleChangeInfo() : newgrf.cpp
- RoadVehicleList : road_cmd.cpp
- RoadVehiclesAreBuilt() : roadveh_cmd.h, road_cmd.cpp
- RoadVehicleStates : roadveh.h
- RoadVehIsCrashed() : roadveh_cmd.cpp
- RoadVehSlopeSteepnessChanged() : settings_table.cpp
- RoadVehUpdateCache() : roadveh.h, roadveh_cmd.cpp
- RotateAirportMovingData() : airport.cpp, airport.h
- RotateRoadBits() : road_func.h
- ROTF_CATENARY : road.h
- ROTF_HIDDEN : road.h
- ROTF_NO_HOUSES : road.h
- ROTF_NO_LEVEL_CROSSING : road.h
- ROTF_TOWN_BUILD : road.h
- ROTFB_CATENARY : road.h
- ROTFB_HIDDEN : road.h
- ROTFB_NO_HOUSES : road.h
- ROTFB_NO_LEVEL_CROSSING : road.h
- ROTFB_NONE : road.h
- ROTFB_TOWN_BUILD : road.h
- ROTOR_Z_OFFSET : aircraft.h
- ROTSG_BRIDGE : road.h
- ROTSG_CATENARY_BACK : road.h
- ROTSG_CATENARY_FRONT : road.h
- ROTSG_CURSORS : road.h
- ROTSG_DEPOT : road.h
- ROTSG_GROUND : road.h
- ROTSG_ONEWAY : road.h
- ROTSG_OVERLAY : road.h
- ROTSG_reserved2 : road.h
- ROTSG_reserved3 : road.h
- ROTSG_ROADSTOP : road.h
- ROTSG_TUNNEL : road.h
- RoundDivSU() : math_func.hpp
- ROV : engines.h
- RSF_BUILD_MENU_ROAD_ONLY : newgrf_roadstop.h
- RSF_BUILD_MENU_TRAM_ONLY : newgrf_roadstop.h
- RSF_CB141_RANDOM_BITS : newgrf_roadstop.h
- RSF_DRAW_MODE_REGISTER : newgrf_roadstop.h
- RSF_DRIVE_THROUGH_ONLY : newgrf_roadstop.h
- RSF_NO_AUTO_ROAD_CONNECTION : newgrf_roadstop.h
- RSF_NO_CATENARY : newgrf_roadstop.h
- RSRT_CARGO_TAKEN : newgrf_roadstop.h
- RSRT_NEW_CARGO : newgrf_roadstop.h
- RSRT_VEH_ARRIVES : newgrf_roadstop.h
- RSRT_VEH_DEPARTS : newgrf_roadstop.h
- RSRT_VEH_LOADS : newgrf_roadstop.h
- RSV_BAY_NE : newgrf_roadstop.h
- RSV_BAY_NW : newgrf_roadstop.h
- RSV_BAY_SE : newgrf_roadstop.h
- RSV_BAY_SW : newgrf_roadstop.h
- RSV_DRIVE_THROUGH_X : newgrf_roadstop.h
- RSV_DRIVE_THROUGH_Y : newgrf_roadstop.h
- RTBO_SLOPE : rail.h
- RTBO_X : rail.h
- RTBO_Y : rail.h
- RTF_ALLOW_90DEG : rail.h
- RTF_CATENARY : rail.h
- RTF_DISALLOW_90DEG : rail.h
- RTF_HIDDEN : rail.h
- RTF_NO_LEVEL_CROSSING : rail.h
- RTF_NO_SPRITE_COMBINE : rail.h
- RTFB_ALLOW_90DEG : rail.h
- RTFB_CATENARY : rail.h
- RTFB_DISALLOW_90DEG : rail.h
- RTFB_HIDDEN : rail.h
- RTFB_NO_LEVEL_CROSSING : rail.h
- RTFB_NO_SPRITE_COMBINE : rail.h
- RTFB_NONE : rail.h
- RTO_CROSSING_XY : rail.h
- RTO_E : rail.h
- RTO_JUNCTION_NE : rail.h
- RTO_JUNCTION_NSEW : rail.h
- RTO_JUNCTION_NW : rail.h
- RTO_JUNCTION_SE : rail.h
- RTO_JUNCTION_SW : rail.h
- RTO_N : rail.h
- RTO_S : rail.h
- RTO_SLOPE_NE : rail.h
- RTO_SLOPE_NW : rail.h
- RTO_SLOPE_SE : rail.h
- RTO_SLOPE_SW : rail.h
- RTO_W : rail.h
- RTO_X : rail.h
- RTO_Y : rail.h
- RTSG_BRIDGE : rail.h
- RTSG_CROSSING : rail.h
- RTSG_CURSORS : rail.h
- RTSG_DEPOT : rail.h
- RTSG_FENCES : rail.h
- RTSG_GROUND : rail.h
- RTSG_GROUND_COMPLETE : rail.h
- RTSG_OVERLAY : rail.h
- RTSG_PYLONS : rail.h
- RTSG_SIGNALS : rail.h
- RTSG_TUNNEL : rail.h
- RTSG_TUNNEL_PORTAL : rail.h
- RTSG_WIRES : rail.h
- RunEconomyVehicleDayProc() : vehicle.cpp
- RunTileLoop() : landscape.cpp, landscape.h
- RunVehicleCalendarDayProc() : vehicle.cpp, vehicle_func.h
- RUNWAY_OUT2_block : airport.h
- RV_OVERTAKE_TIMEOUT : roadveh.h
- RVI : engines.h
- RVList : roadstop.cpp
- RVS_DRIVE_SIDE : roadveh.h
- RVS_ENTERED_STOP : roadveh.h
- RVS_IN_DT_ROAD_STOP : roadveh.h
- RVS_IN_ROAD_STOP : roadveh.h
- RVS_USING_SECOND_BAY : roadveh.h
- RVSB_DRIVE_SIDE : roadveh.h
- RVSB_IN_DEPOT : roadveh.h
- RVSB_IN_DT_ROAD_STOP : roadveh.h
- RVSB_IN_ROAD_STOP : roadveh.h
- RVSB_ROAD_STOP_TRACKDIR_MASK : roadveh.h
- RVSB_TRACKDIR_MASK : roadveh.h
- RVSB_WORMHOLE : roadveh.h
- RWV_HIDE_BEVEL : widget_type.h
- RWV_SHOW_BEVEL : widget_type.h