OpenTTD
|
Helpers for outputting debug information. More...
Go to the source code of this file.
Functions | |
CStrA | ValueStr (Trackdir td) |
Return name of given Trackdir. | |
CStrA | ValueStr (TrackdirBits td_bits) |
Return composed name of given TrackdirBits. | |
CStrA | ValueStr (DiagDirection dd) |
Return name of given DiagDirection. | |
CStrA | ValueStr (SignalType t) |
Return name of given SignalType. | |
CStrA | TileStr (TileIndex tile) |
Translate TileIndex into string. |
Variables | |
static const char *const | trackdir_names [] |
Trackdir & TrackdirBits short names. | |
static const char *const | diagdir_names [] |
DiagDirection short names. | |
static const char *const | signal_type_names [] |
SignalType short names. |
Helpers for outputting debug information.
Definition in file dbg_helpers.cpp.
Translate TileIndex into string.
Definition at line 70 of file dbg_helpers.cpp.
References TileX(), and TileY().
Referenced by DumpTarget::WriteTile().
Return name of given Trackdir.
Definition at line 25 of file dbg_helpers.cpp.
References INVALID_TRACKDIR, ItemAtT(), and trackdir_names.
Referenced by DumpTarget::WriteEnumT().
CStrA ValueStr | ( | TrackdirBits | td_bits | ) |
Return composed name of given TrackdirBits.
Definition at line 33 of file dbg_helpers.cpp.
References ComposeNameT(), INVALID_TRACKDIR_BIT, and trackdir_names.
CStrA ValueStr | ( | DiagDirection | dd | ) |
Return name of given DiagDirection.
Definition at line 47 of file dbg_helpers.cpp.
References diagdir_names, INVALID_DIAGDIR, and ItemAtT().
CStrA ValueStr | ( | SignalType | t | ) |
Return name of given SignalType.
Definition at line 61 of file dbg_helpers.cpp.
References ItemAtT(), and signal_type_names.
|
static |
DiagDirection short names.
Definition at line 42 of file dbg_helpers.cpp.
Referenced by ValueStr().
|
static |
SignalType short names.
Definition at line 56 of file dbg_helpers.cpp.
Referenced by ValueStr().
|
static |
Trackdir & TrackdirBits short names.
Definition at line 19 of file dbg_helpers.cpp.
Referenced by ValueStr().