OpenTTD Source 20241224-master-gee860a5c8e
|
Types used by YAPF. More...
#include <iomanip>
#include <sstream>
#include "../../core/enum_type.hpp"
#include "../../misc/dbg_helpers.h"
Go to the source code of this file.
Enumerations | |
enum | EndSegmentReason { ESR_DEAD_END = 0 , ESR_RAIL_TYPE , ESR_INFINITE_LOOP , ESR_SEGMENT_TOO_LONG , ESR_CHOICE_FOLLOWS , ESR_DEPOT , ESR_WAYPOINT , ESR_STATION , ESR_SAFE_TILE , ESR_PATH_TOO_LONG , ESR_FIRST_TWO_WAY_RED , ESR_LOOK_AHEAD_END , ESR_TARGET_REACHED , ESR_NONE = 0xFF } |
enum | EndSegmentReasonBits { ESRB_NONE = 0 , ESRB_DEAD_END = 1 << ESR_DEAD_END , ESRB_RAIL_TYPE = 1 << ESR_RAIL_TYPE , ESRB_INFINITE_LOOP = 1 << ESR_INFINITE_LOOP , ESRB_SEGMENT_TOO_LONG = 1 << ESR_SEGMENT_TOO_LONG , ESRB_CHOICE_FOLLOWS = 1 << ESR_CHOICE_FOLLOWS , ESRB_DEPOT = 1 << ESR_DEPOT , ESRB_WAYPOINT = 1 << ESR_WAYPOINT , ESRB_STATION = 1 << ESR_STATION , ESRB_SAFE_TILE = 1 << ESR_SAFE_TILE , ESRB_PATH_TOO_LONG = 1 << ESR_PATH_TOO_LONG , ESRB_FIRST_TWO_WAY_RED = 1 << ESR_FIRST_TWO_WAY_RED , ESRB_LOOK_AHEAD_END = 1 << ESR_LOOK_AHEAD_END , ESRB_TARGET_REACHED = 1 << ESR_TARGET_REACHED , ESRB_POSSIBLE_TARGET = ESRB_DEPOT | ESRB_WAYPOINT | ESRB_STATION | ESRB_SAFE_TILE , ESRB_CACHED_MASK = ESRB_DEAD_END | ESRB_RAIL_TYPE | ESRB_INFINITE_LOOP | ESRB_SEGMENT_TOO_LONG | ESRB_CHOICE_FOLLOWS | ESRB_DEPOT | ESRB_WAYPOINT | ESRB_STATION | ESRB_SAFE_TILE , ESRB_ABORT_PF_MASK = ESRB_DEAD_END | ESRB_PATH_TOO_LONG | ESRB_INFINITE_LOOP | ESRB_FIRST_TWO_WAY_RED } |
Functions | |
std::string | ValueStr (EndSegmentReasonBits bits) |
Types used by YAPF.
Definition in file yapf_type.hpp.
enum EndSegmentReason |
Definition at line 20 of file yapf_type.hpp.
enum EndSegmentReasonBits |
Definition at line 43 of file yapf_type.hpp.
|
inline |
Definition at line 75 of file yapf_type.hpp.