engine/generators/source/ShrineGenerator.cpp
// Place the shrine's relic at the specified location.
Place the shrine's relic at the specified location.
Place the shrine ' s relic at the specified location .
void ShrineGenerator::place_relic(MapPtr map, const int mid_row, const int mid_col)
{
  if (map != nullptr)
  {
    string relic_id = get_additional_property(MapProperties::MAP_PROPERTIES_RELIC_ID);
    if (!relic_id.empty())
    {
      ItemManager im;
      ItemPtr relic = im.create_item(relic_id);
      TilePtr relic_tile = map->at(mid_row, mid_col);
      if (relic_tile != nullptr)
      {
        relic_tile->get_items()->add_front(relic);
      }
    }
  }
}
void ShrineGenerator :: place_relic ( MapPtr map , const int mid_row , const int mid_col ) { if ( map != nullptr ) { string relic_id = get_additional_property ( MapProperties :: MAP_PROPERTIES_RELIC_ID ) ; if ( ! relic_id . empty ( ) ) { ItemManager im ; ItemPtr relic = im . create_item ( relic_id ) ; TilePtr relic_tile = map -> at ( mid_row , mid_col ) ; if ( relic_tile != nullptr ) { relic_tile -> get_items ( ) -> add_front ( relic ) ; } } } }
Place the shrine's relic at the specified location.
Place the shrine ' s relic at the specified location .