engine/translators/source/MapTranslator.cpp
// Create a display tile from a given coordinate, given the current map
// and the current FOV map.
Create a display tile from a given coordinate, given the current map
and the current FOV map.
Create a display tile from a given coordinate given the current map and the current FOV map .
DisplayTile MapTranslator::translate_coordinate_into_display_tile(const bool player_blinded, const bool timewalking, const pair<Colour, Colour>& tod_overrides, const ShimmerColours& shimmer_colours, const MapPtr& map, const MapPtr& fov_map, const int actual_row, const int actual_col)
{
  TilePtr map_tile = map->at(actual_row, actual_col);
  TilePtr fov_map_tile;
  if (fov_map != nullptr)
  {
    fov_map_tile = fov_map->at(actual_row, actual_col);
  }
  return create_display_tile(player_blinded, timewalking, tod_overrides, shimmer_colours, map_tile, fov_map_tile);
}
DisplayTile MapTranslator :: translate_coordinate_into_display_tile ( const bool player_blinded , const bool timewalking , const pair < Colour , Colour > & tod_overrides , const ShimmerColours & shimmer_colours , const MapPtr & map , const MapPtr & fov_map , const int actual_row , const int actual_col ) { TilePtr map_tile = map -> at ( actual_row , actual_col ) ; TilePtr fov_map_tile ; if ( fov_map != nullptr ) { fov_map_tile = fov_map -> at ( actual_row , actual_col ) ; } return create_display_tile ( player_blinded , timewalking , tod_overrides , shimmer_colours , map_tile , fov_map_tile ) ; }
Create a display tile from a given coordinate, given the current map
and the current FOV map.
Create a display tile from a given coordinate given the current map and the current FOV map .
// Get the map tile // Check to see if a corresponding FOV tile exists // Translate the map tile