engine/generators/worship_sites/source/CathedralGenerator.cpp
// Generate the priest's quarters in the back of the Cathedral
Generate the priest's quarters in the back of the Cathedral
Generate the priest ' s quarters in the back of the Cathedral
void CathedralGenerator::generate_priest_quarters(MapPtr map, const int room_start_col)
{
  TileGenerator tg;
  TilePtr current_tile;
  for (int row = start_row + 1; row < start_row + church_height; row++)
  {
    if (row != start_row+2)
    {
      current_tile = tg.generate(TileType::TILE_TYPE_ROCK);
      map->insert(row, room_start_col, current_tile);
    }
    else
    {
      FeaturePtr priest_door = FeatureGenerator::generate_door();
      current_tile = map->at(row, room_start_col);
      current_tile->set_feature(priest_door);
    }
  }
}
void CathedralGenerator :: generate_priest_quarters ( MapPtr map , const int room_start_col ) { TileGenerator tg ; TilePtr current_tile ; for ( int row = start_row + 1 ; row < start_row + church_height ; row ++ ) { if ( row != start_row + 2 ) { current_tile = tg . generate ( TileType :: TILE_TYPE_ROCK ) ; map -> insert ( row , room_start_col , current_tile ) ; } else { FeaturePtr priest_door = FeatureGenerator :: generate_door ( ) ; current_tile = map -> at ( row , room_start_col ) ; current_tile -> set_feature ( priest_door ) ; } } }
Generate the priest's quarters in the back of the Cathedral
Generate the priest ' s quarters in the back of the Cathedral