OpenTTD Source 20241224-master-gf74b0cf984
PathfinderSettings Struct Reference

Settings related to all pathfinders. More...

#include <settings_type.h>

Data Fields

bool roadveh_queue
 buggy road vehicle queueing
 
bool forbid_90_deg
 forbid trains to make 90 deg turns
 
bool reverse_at_signals
 whether to reverse at signals at all
 
uint8_t wait_oneway_signal
 waitingtime in days before a oneway signal
 
uint8_t wait_twoway_signal
 waitingtime in days before a twoway signal
 
bool reserve_paths
 always reserve paths regardless of signal type.
 
uint8_t wait_for_pbs_path
 how long to wait for a path reservation.
 
uint8_t path_backoff_interval
 ticks between checks for a free path.
 
YAPFSettings yapf
 pathfinder settings for the yet another pathfinder
 

Detailed Description

Settings related to all pathfinders.

Definition at line 464 of file settings_type.h.

Field Documentation

◆ forbid_90_deg

◆ path_backoff_interval

uint8_t PathfinderSettings::path_backoff_interval

ticks between checks for a free path.

Definition at line 474 of file settings_type.h.

Referenced by CheckNextTrainTile(), and TrainController().

◆ reserve_paths

bool PathfinderSettings::reserve_paths

always reserve paths regardless of signal type.

Definition at line 472 of file settings_type.h.

Referenced by CheckTrainStayInDepot(), and ReverseTrainDirection().

◆ reverse_at_signals

bool PathfinderSettings::reverse_at_signals

whether to reverse at signals at all

Definition at line 468 of file settings_type.h.

Referenced by AfterLoadGame(), and TrainController().

◆ roadveh_queue

bool PathfinderSettings::roadveh_queue

buggy road vehicle queueing

Definition at line 465 of file settings_type.h.

Referenced by RoadFindPathToDest().

◆ wait_for_pbs_path

uint8_t PathfinderSettings::wait_for_pbs_path

how long to wait for a path reservation.

Definition at line 473 of file settings_type.h.

Referenced by AfterLoadGame().

◆ wait_oneway_signal

uint8_t PathfinderSettings::wait_oneway_signal

waitingtime in days before a oneway signal

Definition at line 469 of file settings_type.h.

Referenced by AfterLoadGame(), and TrainController().

◆ wait_twoway_signal

uint8_t PathfinderSettings::wait_twoway_signal

waitingtime in days before a twoway signal

Definition at line 470 of file settings_type.h.

Referenced by AfterLoadGame(), and TrainController().

◆ yapf

YAPFSettings PathfinderSettings::yapf

pathfinder settings for the yet another pathfinder

Definition at line 476 of file settings_type.h.

Referenced by CheckIfTrainNeedsService(), YapfRoadVehicleChooseTrack(), and YapfRoadVehicleFindNearestDepot().


The documentation for this struct was generated from the following file: