Base class for all utility services. More...
#include <Utilities.h>
Public Member Functions | |
| 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 | |
| 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. | |
Base class for all utility services.
This class represents a utility service with attributes for efficiency, budget, and functional status.
|
inline |
Gets the efficiency of the utility.
|
inline |
Checks if the utility is functional.
|
inline |
Sets the efficiency of the utility.
| value | Efficiency value to set. |
|
inline |
Sets the functional status of the utility.
| value | Functional status to set. |