OpenTTD Source
20241108-master-g80f628063a
|
Helpers for outputting debug information. More...
#include "../stdafx.h"
#include "../rail_map.h"
#include "dbg_helpers.h"
#include <sstream>
#include <iomanip>
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
std::string | ValueStr (Trackdir td) |
Return name of given Trackdir. | |
std::string | ValueStr (TrackdirBits td_bits) |
Return composed name of given TrackdirBits. | |
std::string | ValueStr (DiagDirection dd) |
Return name of given DiagDirection. | |
std::string | ValueStr (SignalType t) |
Return name of given SignalType. | |
std::string | TileStr (TileIndex tile) |
Translate TileIndex into string. | |
Variables | |
static const char *const | trackdir_names [] |
Trackdir & TrackdirBits short names. More... | |
static const char *const | diagdir_names [] |
DiagDirection short names. More... | |
static const char *const | signal_type_names [] |
SignalType short names. More... | |
Helpers for outputting debug information.
Definition in file dbg_helpers.cpp.
|
static |
DiagDirection short names.
Definition at line 39 of file dbg_helpers.cpp.
Referenced by ValueStr().
|
static |
SignalType short names.
Definition at line 51 of file dbg_helpers.cpp.
Referenced by ValueStr().
|
static |
Trackdir & TrackdirBits short names.
Definition at line 20 of file dbg_helpers.cpp.
Referenced by ValueStr().