sudo apt-get marks
 
Loading...
Searching...
No Matches
RenovateAllBuildings Class Reference

Concrete command class that renovates all buildings. More...

#include <Routines.h>

Inheritance diagram for RenovateAllBuildings:
GovernmentCommands

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RenovateAllBuildings()

RenovateAllBuildings::RenovateAllBuildings ( const std::vector< Building * > & buildings)

Constructs a RenovateAllBuildings command.

Parameters
buildingsVector of pointers to the buildings to be renovated.

Member Function Documentation

◆ execute()

void RenovateAllBuildings::execute ( )
overridevirtual

Executes the renovation of all buildings.

This function implements the renovation logic for each building in the list.

Implements GovernmentCommands.