OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
37 enum EndSegmentReasonBits {
58 ESRB_POSSIBLE_TARGET = ESRB_DEPOT | ESRB_WAYPOINT | ESRB_STATION | ESRB_SAFE_TILE,
61 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,
64 ESRB_ABORT_PF_MASK = ESRB_DEAD_END | ESRB_PATH_TOO_LONG | ESRB_INFINITE_LOOP | ESRB_FIRST_TWO_WAY_RED,
71 static const char *
const end_segment_reason_names[] = {
72 "DEAD_END",
"RAIL_TYPE",
"INFINITE_LOOP",
"SEGMENT_TOO_LONG",
"CHOICE_FOLLOWS",
73 "DEPOT",
"WAYPOINT",
"STATION",
"SAFE_TILE",
74 "PATH_TOO_LONG",
"FIRST_TWO_WAY_RED",
"LOOK_AHEAD_END",
"TARGET_REACHED"
78 out.Format(
"0x%04X (%s)", bits,
ComposeNameT(bits, end_segment_reason_names,
"UNK", ESRB_NONE,
"NONE").Data());
79 return out.Transfer();
@ ESR_WAYPOINT
waypoint encountered (could be a target next time)
@ ESR_STATION
station encountered (could be a target next time)
@ ESR_TARGET_REACHED
we have just reached the destination
Blob based case sensitive ANSI/UTF-8 string.
@ ESR_LOOK_AHEAD_END
we have just passed the last look-ahead signal
@ ESR_SEGMENT_TOO_LONG
the segment is too long (possible infinite loop)
@ ESR_DEPOT
stop in the depot (could be a target next time)
CStrA ComposeNameT(E value, T &t, const char *t_unk, E val_inv, const char *name_inv)
Helper template function that returns compound bitfield name that is concatenation of names of each s...
@ ESR_RAIL_TYPE
the next tile has a different rail type than our tiles
@ ESR_FIRST_TWO_WAY_RED
first signal was 2-way and it was red
@ ESR_DEAD_END
track ends here
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
@ ESR_PATH_TOO_LONG
the path is too long (searching for the nearest depot in the given radius)
@ ESR_NONE
no reason to end the segment here
@ ESR_INFINITE_LOOP
infinite loop detected
CStrA ValueStr(Trackdir td)
Return name of given Trackdir.
@ ESR_SAFE_TILE
safe waiting position found (could be a target)
@ ESR_CHOICE_FOLLOWS
the next tile contains a choice (the track splits to more than one segments)