engine/translators/source/MapTranslator.cpp
// Create a display tile from a given creature
Create a display tile from a given creature
Create a display tile from a given creature
DisplayTile MapTranslator::create_display_tile_from_creature(const CreaturePtr& creature, const Colour override_colour)
{
  uchar symbol = '?';
  if (creature != nullptr)
  {
    symbol = creature->get_symbol();
  }
  return create_display_tile_from_symbol_and_colour(symbol, override_colour != Colour::COLOUR_UNDEFINED ? override_colour : creature->get_colour());
}
DisplayTile MapTranslator :: create_display_tile_from_creature ( const CreaturePtr & creature , const Colour override_colour ) { uchar symbol = ' ' ; if ( creature != nullptr ) { symbol = creature -> get_symbol ( ) ; } return create_display_tile_from_symbol_and_colour ( symbol , override_colour != Colour :: COLOUR_UNDEFINED ? override_colour : creature -> get_colour ( ) ) ; }
Create a display tile from a given creature
Create a display tile from a given creature