#include "../stdafx.h"
#include "../openttd.h"
#include "../direction_type.h"
#include "../rail.h"
#include "../rail_map.h"
#include "dbg_helpers.h"
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 * | trackdir_names [] |
Trackdir & TrackdirBits short names. | |
static const char * | diagdir_names [] |
DiagDirection short names. | |
static const char * | signal_type_names [] |
SignalType short names. |
Definition in file dbg_helpers.cpp.
Translate TileIndex into string.
Definition at line 63 of file dbg_helpers.cpp.
References CStrT< Tchar, TcaseInsensitive >::Format(), TileX(), TileY(), and CBlobT< Titem_, Tbase_ >::Transfer().
Referenced by DumpTarget::WriteTile().
CStrA ValueStr | ( | SignalType | t | ) |
Return name of given SignalType.
Definition at line 54 of file dbg_helpers.cpp.
References CStrT< Tchar, TcaseInsensitive >::Format(), ItemAtT(), signal_type_names, and CBlobT< Titem_, Tbase_ >::Transfer().
CStrA ValueStr | ( | DiagDirection | dd | ) |
Return name of given DiagDirection.
Definition at line 40 of file dbg_helpers.cpp.
References diagdir_names, CStrT< Tchar, TcaseInsensitive >::Format(), INVALID_DIAGDIR, ItemAtT(), and CBlobT< Titem_, Tbase_ >::Transfer().
CStrA ValueStr | ( | TrackdirBits | td_bits | ) |
Return composed name of given TrackdirBits.
Definition at line 26 of file dbg_helpers.cpp.
References ComposeNameT(), CStrT< Tchar, TcaseInsensitive >::Format(), INVALID_TRACKDIR_BIT, trackdir_names, and CBlobT< Titem_, Tbase_ >::Transfer().
Return name of given Trackdir.
Definition at line 18 of file dbg_helpers.cpp.
References CStrT< Tchar, TcaseInsensitive >::Format(), INVALID_TRACKDIR, ItemAtT(), trackdir_names, and CBlobT< Titem_, Tbase_ >::Transfer().
Referenced by DumpTarget::WriteEnumT().
const char* diagdir_names[] [static] |
Initial value:
{ "NE", "SE", "SW", "NW", }
Definition at line 35 of file dbg_helpers.cpp.
Referenced by ValueStr().
const char* signal_type_names[] [static] |
Initial value:
{ "NORMAL", "ENTRY", "EXIT", "COMBO", }
Definition at line 49 of file dbg_helpers.cpp.
Referenced by ValueStr().
const char* trackdir_names[] [static] |
Initial value:
{ "NE", "SE", "UE", "LE", "LS", "RS", "rne", "rse", "SW", "NW", "UW", "LW", "LN", "RN", "rsw", "rnw", }
Definition at line 12 of file dbg_helpers.cpp.
Referenced by ValueStr().