|
OpenTTD Source 20260311-master-g511d3794ce
|
Types used by YAPF. More...
Go to the source code of this file.
Typedefs | |
| using | EndSegmentReasons = EnumBitSet<EndSegmentReason, uint16_t> |
Enumerations | |
| enum class | EndSegmentReason : uint8_t { DeadEnd , RailType , InfiniteLoop , SegmentTooLong , ChoiceFollows , Depot , Waypoint , Station , SafeTile , PathTooLong , FirstTwoWayRed , LookAheadEnd , TargetReached } |
| Enum used in PfCalcCost() to see why was the segment closed. More... | |
Functions | |
| std::string | ValueStr (EndSegmentReasons flags) |
Variables | |
| static constexpr EndSegmentReasons | ESRF_POSSIBLE_TARGET |
| What reasons mean that the target can be found and needs to be detected. | |
| static constexpr EndSegmentReasons | ESRF_CACHED_MASK |
| What reasons can be stored back into cached segment. | |
| static constexpr EndSegmentReasons | ESRF_ABORT_PF_MASK |
| Reasons to abort pathfinding in this direction. | |
Types used by YAPF.
Definition in file yapf_type.hpp.
| using EndSegmentReasons = EnumBitSet<EndSegmentReason, uint16_t> |
Definition at line 36 of file yapf_type.hpp.
|
strong |
Enum used in PfCalcCost() to see why was the segment closed.
Definition at line 17 of file yapf_type.hpp.
|
inline |
Definition at line 67 of file yapf_type.hpp.
|
staticconstexpr |
Reasons to abort pathfinding in this direction.
Definition at line 60 of file yapf_type.hpp.
Referenced by CYapfCostRailT< Types >::PfCalcCost().
|
staticconstexpr |
What reasons can be stored back into cached segment.
Definition at line 47 of file yapf_type.hpp.
Referenced by CYapfCostRailT< Types >::PfCalcCost().
|
staticconstexpr |
What reasons mean that the target can be found and needs to be detected.
Definition at line 39 of file yapf_type.hpp.
Referenced by CYapfCostRailT< Types >::PfCalcCost().