# yapf_settings.h File Reference

Go to the source code of this file.

## Defines
#define | YS_DEF_BEGIN struct YapfSettings {
#define | YS_DEF(type, name) type name;
#define | YS_DEF_END };
## Functions
YS_DEF_BEGIN | YS_DEF (bool, disable_node_optimization) YS_DEF(uint32
YS_DEF_BEGIN max_search_nodes | YS_DEF (bool, ship_use_yapf) YS_DEF(bool
| < stop path-finding when this number of nodes visited
YS_DEF_BEGIN max_search_nodes road_use_yapf | YS_DEF (bool, rail_use_yapf) YS_DEF(uint32
| < use YAPF for road
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty | YS_DEF (uint32, road_curve_penalty) YS_DEF(uint32
| < penalty for up-hill slope
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty | YS_DEF (uint32, road_stop_penalty) YS_DEF(bool
| < penalty for level crossing
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol | YS_DEF (uint32, rail_firstred_penalty) YS_DEF(uint32
| < treat first red two-way signal as dead end
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty | YS_DEF (uint32, rail_lastred_penalty) YS_DEF(uint32
| < penalty for first red exit signal
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty | YS_DEF (uint32, rail_station_penalty) YS_DEF(uint32
| < penalty for last red exit signal
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty | YS_DEF (uint32, rail_curve45_penalty) YS_DEF(uint32
| < penalty for up-hill slope
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty rail_curve90_penalty | YS_DEF (uint32, rail_depot_reverse_penalty) YS_DEF(uint32
| < penalty for 90-deg curve
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty rail_curve90_penalty rail_crossing_penalty | YS_DEF (uint32, rail_look_ahead_max_signals) YS_DEF(int32
| < penalty for level crossing
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty rail_curve90_penalty rail_crossing_penalty rail_look_ahead_signal_p0 | YS_DEF (int32, rail_look_ahead_signal_p1) YS_DEF(int32
| < constant in polynomial penalty function
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty rail_curve90_penalty rail_crossing_penalty rail_look_ahead_signal_p0 rail_look_ahead_signal_p2 | YS_DEF (uint32, rail_longer_platform_penalty) YS_DEF(uint32
| < constant in polynomial penalty function
YS_DEF_BEGIN max_search_nodes road_use_yapf road_slope_penalty road_crossing_penalty rail_firstred_twoway_eol rail_firstred_exit_penalty rail_lastred_exit_penalty rail_slope_penalty rail_curve90_penalty rail_crossing_penalty rail_look_ahead_signal_p0 rail_look_ahead_signal_p2 rail_longer_platform_per_tile_penalty | YS_DEF (uint32, rail_shorter_platform_penalty) YS_DEF(uint32
| < penalty for longer station platform than train (per tile)

## Detailed Description

Definition in file yapf_settings.h.