Concrete implementation of a flat tax strategy. More...
#include <TaxSystem.h>
Public Member Functions | |
| virtual float | calculateTax (CityGrowth *growth) |
| Calculates the tax based on the flat tax rate. | |
| virtual std::string | getStrategy () |
| Gets the name of the flat tax strategy. | |
Public Member Functions inherited from TaxStrategy | |
| virtual | ~TaxStrategy ()=default |
| Destroys the TaxStrategy object. | |
Concrete implementation of a flat tax strategy.
This class calculates taxes using a flat rate, where all incomes are taxed at the same percentage.
|
virtual |
Calculates the tax based on the flat tax rate.
| growth | Pointer to a CityGrowth object used to gather relevant data for tax calculation. |
Implements TaxStrategy.
|
virtual |
Gets the name of the flat tax strategy.
Implements TaxStrategy.