|
| | Residential (std::string name, int numRooms, int m_squared, float value, int numBedrooms, int numBathrooms, int capacity, std::string type) |
| | Constructor for a Residential building.
|
| |
| virtual void | build ()=0 |
| | Pure virtual function to build the residential building.
|
| |
| virtual Residential * | clone ()=0 |
| | Pure virtual function to clone the residential building.
|
| |
| void | addCitizen (Citizen *human) override |
| | Adds a citizen to the residential building.
|
| |
| void | displayCitizens () override |
| | Displays the list of citizens in the residential building.
|
| |
| int | getLeftOverCapacity () override |
| | Gets the remaining capacity of the residential building.
|
| |
| int | getCapacity () |
| | Gets the maximum capacity of the residential building.
|
| |
| std::vector< Citizen * > | getCitizens () |
| | Gets the list of citizens in the residential building.
|
| |
| virtual std::string | getType () const =0 |
| | Pure virtual function to get the type of the residential building.
|
| |
| | Building (std::string name, int numRooms, int m_squared, float value, std::string type) |
| | Constructor to initialize a Building object.
|
| |
|
virtual | ~Building () |
| | Virtual destructor for the Building class.
|
| |
| std::vector< Citizen * > | getCitizens () const |
| | Gets the list of citizens in the building.
|
| |
| std::string | getName () |
| | Gets the name of the building.
|
| |
| std::string | getBuildingType () |
| | Gets the building's type description.
|
| |
| bool | getBuilt () const |
| | Checks if the building is built.
|
| |
| void | renovate () |
| | Renovates the building, updating any necessary properties.
|
| |
|
|
int | numBedrooms |
| | Number of bedrooms in the residential building.
|
| |
|
int | numBathrooms |
| | Number of bathrooms in the residential building.
|
| |
|
int | capacity |
| | Maximum occupancy capacity of the building.
|
| |
|
std::string | name |
| | Name of the building.
|
| |
|
std::string | type |
| | Type of the building (e.g., Residential, Commercial)
|
| |
|
int | numRooms |
| | Number of rooms in the building.
|
| |
|
int | m_squared |
| | Area of the building in square meters.
|
| |
|
float | value |
| | Value of the building.
|
| |
|
bool | built = false |
| | Flag indicating if the building is built.
|
| |
|
Budget * | budget |
| | Pointer to a Budget object for managing building finances.
|
| |
|
Concrete * | concrete |
| | Pointer to a Concrete object for building materials.
|
| |
|
Steel * | steel |
| | Pointer to a Steel object for building materials.
|
| |
|
Wood * | wood |
| | Pointer to a Wood object for building materials.
|
| |
|
std::vector< Citizen * > | citizens |
| | List of citizens associated with the building.
|
| |
Abstract class representing a residential building.
The Residential class is derived from the Building class and serves as a base class for different types of residential buildings. It includes attributes specific to residential buildings, such as bedrooms, bathrooms, and capacity.