Class representing a functional waste management system. More...
#include <Utilities.h>
Public Member Functions | |
| FunctionalWasteManagement (bool built, int powerGen=0) | |
| Constructs a FunctionalWasteManagement object. | |
| ~FunctionalWasteManagement () | |
| Destructor for FunctionalWasteManagement. | |
| WasteManagement * | repair () override |
| Repairs the functional waste management system. | |
| WasteManagement * | mulfunction () override |
| Indicates a malfunction in the functional waste management system. | |
Public Member Functions inherited from WasteManagement | |
| WasteManagement (bool built, int powerGen=0) | |
| Constructs a WasteManagement object. | |
| ~WasteManagement () | |
| Destructor for WasteManagement. | |
| int | getWasteCollection () |
| Gets the waste collection capacity. | |
| void | recycle () |
| Recycles the collected waste. | |
| void | collect () |
| Collects waste for management. | |
| int | getWasteCollectionRaw () const |
| Gets the raw waste collection value. | |
| void | setWasteCollection (int value) |
| Sets the waste collection 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 WasteManagement | |
| int | wasteCollection |
| Waste collection capacity in kilograms. | |
| 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 functional waste management system.
| FunctionalWasteManagement::FunctionalWasteManagement | ( | bool | built, |
| int | powerGen = 0 ) |
Constructs a FunctionalWasteManagement object.
| built | Indicates if the waste management system is built. |
| powerGen | Initial waste collection capacity. |
|
overridevirtual |
Indicates a malfunction in the functional waste management system.
Implements WasteManagement.
|
overridevirtual |
Repairs the functional waste management system.
Implements WasteManagement.