sudo apt-get marks
 
Loading...
Searching...
No Matches
GovernmentCommands Class Referenceabstract

Abstract base class for government command actions. More...

#include <Routines.h>

Inheritance diagram for GovernmentCommands:
MonthlyRoutines RenovateAllBuildings UpgradeAllPub UpgradeAllRail UpgradeAllRoad

Public Member Functions

virtual void execute ()=0
 Executes the command.
 
virtual ~GovernmentCommands ()
 Virtual destructor for proper cleanup of derived classes.
 

Detailed Description

Abstract base class for government command actions.

This class defines the interface for all government commands that can be executed. It provides a pure virtual function execute() that must be implemented by derived classes.

Member Function Documentation

◆ execute()

virtual void GovernmentCommands::execute ( )
pure virtual

Executes the command.

This function should contain the logic for the specific command being executed.

Implemented in MonthlyRoutines, RenovateAllBuildings, UpgradeAllPub, UpgradeAllRail, and UpgradeAllRoad.