Class representing a non-functional water supply system. More...
#include <Utilities.h>
Public Member Functions | |
| NonFunctionalWaterSupply (bool built, int powerGen=0) | |
| Constructs a NonFunctionalWaterSupply object. | |
| ~NonFunctionalWaterSupply () | |
| Destructor for NonFunctionalWaterSupply. | |
| WaterSupply * | repair () override |
| Repairs the non-functional water supply system. | |
| WaterSupply * | mulfunction () override |
| Indicates a malfunction in the non-functional water supply system. | |
Public Member Functions inherited from WaterSupply | |
| WaterSupply (bool built, int powerGen=0) | |
| Constructs a WaterSupply object. | |
| ~WaterSupply () | |
| Destructor for WaterSupply. | |
| int | getWaterGeneration () |
| Gets the water generation capacity. | |
| void | distribute () |
| Distributes water from the supply. | |
| int | getWaterGenerationRaw () const |
| Gets the raw water generation value. | |
| void | setWaterGeneration (int value) |
| Sets the water generation capacity. | |
Public Member Functions inherited from Utility | |
| Utility () | |
| Constructor for Utility. | |
| ~Utility () | |
| Destructor for Utility. | |
| float | getEfficiency () const |
| Gets the efficiency of the utility. | |
| void | setEfficiency (float value) |
| Sets the efficiency of the utility. | |
| bool | getFunctional () const |
| Checks if the utility is functional. | |
| void | setFunctional (bool value) |
| Sets the functional status of the utility. | |
Additional Inherited Members | |
Protected Attributes inherited from WaterSupply | |
| int | waterGeneration |
| Water generation capacity in liters. | |
| Water * | water |
| Pointer to water resources. | |
| bool | isInitialBuild = false |
| Indicates if it is an initial build. | |
Protected Attributes inherited from Utility | |
| float | efficiency |
| Efficiency of the utility service (percentage). | |
| Budget * | budget |
| Pointer to the budget for the utility. | |
| Concrete * | concrete |
| Pointer to concrete resources. | |
| Steel * | steel |
| Pointer to steel resources. | |
| Wood * | wood |
| Pointer to wood resources. | |
| bool | isFunctional |
| Indicates whether the utility is functional. | |
Class representing a non-functional water supply system.
| NonFunctionalWaterSupply::NonFunctionalWaterSupply | ( | bool | built, |
| int | powerGen = 0 ) |
Constructs a NonFunctionalWaterSupply object.
| built | Indicates if the water supply system is built. |
| powerGen | Initial water generation capacity. |
|
overridevirtual |
Indicates a malfunction in the non-functional water supply system.
Implements WaterSupply.
|
overridevirtual |
Repairs the non-functional water supply system.
Implements WaterSupply.