Abstract class representing a waste management system. More...
#include <Utilities.h>
Public Member Functions | |
| WasteManagement (bool built, int powerGen=0) | |
| Constructs a WasteManagement object. | |
| ~WasteManagement () | |
| Destructor for WasteManagement. | |
| virtual WasteManagement * | repair ()=0 |
| Repairs the waste management system. | |
| virtual WasteManagement * | mulfunction ()=0 |
| Indicates a malfunction in the waste management system. | |
| 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. | |
Protected Attributes | |
| 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. | |
Abstract class representing a waste management system.
This class manages attributes related to waste collection.
| WasteManagement::WasteManagement | ( | bool | built, |
| int | powerGen = 0 ) |
Constructs a WasteManagement object.
| built | Indicates if the waste management system is built. |
| powerGen | Initial waste collection capacity. |
| int WasteManagement::getWasteCollection | ( | ) |
Gets the waste collection capacity.
|
inline |
Gets the raw waste collection value.
|
pure virtual |
Indicates a malfunction in the waste management system.
Implemented in FunctionalWasteManagement, and NonFunctionalWasteManagement.
|
pure virtual |
Repairs the waste management system.
Implemented in FunctionalWasteManagement, and NonFunctionalWasteManagement.
|
inline |
Sets the waste collection capacity.
| value | Waste collection value to set. |