Concrete command class that renovates all buildings. More...
#include <Routines.h>
Public Member Functions | |
| RenovateAllBuildings (const std::vector< Building * > &buildings) | |
| Constructs a RenovateAllBuildings command. | |
| void | execute () override |
| Executes the renovation of all buildings. | |
Public Member Functions inherited from GovernmentCommands | |
| virtual | ~GovernmentCommands () |
| Virtual destructor for proper cleanup of derived classes. | |
Concrete command class that renovates all buildings.
This command class encapsulates the action of renovating all buildings in the city. It holds a vector of Building pointers to operate on during execution.
| RenovateAllBuildings::RenovateAllBuildings | ( | const std::vector< Building * > & | buildings | ) |
Constructs a RenovateAllBuildings command.
| buildings | Vector of pointers to the buildings to be renovated. |
|
overridevirtual |
Executes the renovation of all buildings.
This function implements the renovation logic for each building in the list.
Implements GovernmentCommands.