sudo apt-get marks
 
Loading...
Searching...
No Matches
FunctionalWasteManagement Class Reference

Class representing a functional waste management system. More...

#include <Utilities.h>

Inheritance diagram for FunctionalWasteManagement:
WasteManagement Utility

Public Member Functions

 FunctionalWasteManagement (bool built, int powerGen=0)
 Constructs a FunctionalWasteManagement object.
 
 ~FunctionalWasteManagement ()
 Destructor for FunctionalWasteManagement.
 
WasteManagementrepair () override
 Repairs the functional waste management system.
 
WasteManagementmulfunction () 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).
 
Budgetbudget
 Pointer to the budget for the utility.
 
Concreteconcrete
 Pointer to concrete resources.
 
Steelsteel
 Pointer to steel resources.
 
Woodwood
 Pointer to wood resources.
 
bool isFunctional
 Indicates whether the utility is functional.
 

Detailed Description

Class representing a functional waste management system.

Constructor & Destructor Documentation

◆ FunctionalWasteManagement()

FunctionalWasteManagement::FunctionalWasteManagement ( bool built,
int powerGen = 0 )

Constructs a FunctionalWasteManagement object.

Parameters
builtIndicates if the waste management system is built.
powerGenInitial waste collection capacity.

Member Function Documentation

◆ mulfunction()

WasteManagement * FunctionalWasteManagement::mulfunction ( )
overridevirtual

Indicates a malfunction in the functional waste management system.

Returns
Pointer to the malfunctioning WasteManagement.

Implements WasteManagement.

◆ repair()

WasteManagement * FunctionalWasteManagement::repair ( )
overridevirtual

Repairs the functional waste management system.

Returns
Pointer to the repaired WasteManagement.

Implements WasteManagement.