engine/generators/worship_sites/source/CathedralGenerator.cpp
// Generate a pair of doors that lead into the cathedral
Generate a pair of doors that lead into the cathedral
Generate a pair of doors that lead into the cathedral
void CathedralGenerator::generate_doors(MapPtr map)
{
  TileGenerator tg;
  TilePtr first_door_tile  = tg.generate(TileType::TILE_TYPE_DUNGEON);
  TilePtr second_door_tile = tg.generate(TileType::TILE_TYPE_DUNGEON);
  FeaturePtr first_door    = FeatureGenerator::generate_door();
  FeaturePtr second_door   = FeatureGenerator::generate_door();
  first_door_tile->set_feature(first_door);
  second_door_tile->set_feature(second_door);
  map->insert(start_row + (church_height / 2 - 1), start_col, first_door_tile);
  map->insert(start_row + (church_height / 2), start_col, second_door_tile);
}
void CathedralGenerator :: generate_doors ( MapPtr map ) { TileGenerator tg ; TilePtr first_door_tile = tg . generate ( TileType :: TILE_TYPE_DUNGEON ) ; TilePtr second_door_tile = tg . generate ( TileType :: TILE_TYPE_DUNGEON ) ; FeaturePtr first_door = FeatureGenerator :: generate_door ( ) ; FeaturePtr second_door = FeatureGenerator :: generate_door ( ) ; first_door_tile -> set_feature ( first_door ) ; second_door_tile -> set_feature ( second_door ) ; map -> insert ( start_row + ( church_height / 2 - 1 ) , start_col , first_door_tile ) ; map -> insert ( start_row + ( church_height / 2 ) , start_col , second_door_tile ) ; }
Generate a pair of doors that lead into the cathedral
Generate a pair of doors that lead into the cathedral