Represents a sector within the city containing buildings. More...
#include <CityGrowth.h>
Public Member Functions | |
| ~CitySector () | |
| Destructor for CitySector. | |
| void | addBuilding (Building *building) |
| Adds a building to the city sector. | |
| int | getBuildingCount () |
| Gets the count of buildings in the sector. | |
| const std::vector< Building * > & | getBuildings () const |
| Gets a constant reference to the vector of buildings in the sector. | |
| std::vector< Building * > | getBlock () |
| Gets a vector representing the block of buildings. | |
Represents a sector within the city containing buildings.
The CitySector class manages a collection of buildings in a specific area of the city. It provides methods to add buildings, retrieve the number of buildings, and access the list of buildings in the sector.
| void CitySector::addBuilding | ( | Building * | building | ) |
Adds a building to the city sector.
| building | A pointer to the Building object to be added. |
| std::vector< Building * > CitySector::getBlock | ( | ) |
Gets a vector representing the block of buildings.
| int CitySector::getBuildingCount | ( | ) |
Gets the count of buildings in the sector.