The Taxplaner class provides funcionality to get the best taxes for the andaloria-folks :)
Initially set all data with set(), then use either taxCalc() or getTax() to get a list of taxes and its corresponding effects. Use getTaxDetails() to get details about a specific taxrate.
Definition at line 29 of file lib/taxplaner.php.
Public Member Functions | |
| Taxplaner () | |
| constructor. | |
| set ($intGrowth, $intInflTax, $intTax, $intWorker, $intFood, $intFoodBase, $intUnit, $intBuild, $intGold) | |
| set the needed values | |
| taxCalc ($intStartTax, $intEndTax) | |
| get an array with food and gold values in an specified intervall | |
| getTax ($intTax=0) | |
| get an array with food and gold values for a specific tax rate | |
| getTaxDetails ($intTax=0) | |
| get details for a specific tax rate | |
Public Attributes | |
| $intGrowth | |
| growth infuence | |
| $intInflTax | |
| influence on taxes | |
| $intTax | |
| taxrate | |
| $intWorker | |
| workers (not free workers) | |
| $intFood | |
| food production | |
| $intFoodBase | |
| food base production | |
| $intUnit | |
| unit slots | |
| $intBuild | |
| building slots | |
| $intGold | |
| gold production | |
| $intTotalFood | |
| total food production | |
|
|
constructor.
Definition at line 45 of file lib/taxplaner.php. |
|
|
get an array with food and gold values for a specific tax rate
Definition at line 100 of file lib/taxplaner.php. References $intFood, $intGold, and $intTax. Referenced by taxCalc(). |
|
|
get details for a specific tax rate
Definition at line 126 of file lib/taxplaner.php. |
|
||||||||||||||||||||||||||||||||||||||||
|
set the needed values
Definition at line 61 of file lib/taxplaner.php. References $intBuild, $intFood, $intFoodBase, $intGold, $intGrowth, $intInflTax, $intTax, $intUnit, and $intWorker. |
|
||||||||||||
|
get an array with food and gold values in an specified intervall
Definition at line 81 of file lib/taxplaner.php. |
|
|
building slots
Definition at line 38 of file lib/taxplaner.php. Referenced by set(). |
|
|
food production
Definition at line 35 of file lib/taxplaner.php. Referenced by getTax(), getTaxDetails(), and set(). |
|
|
food base production
Definition at line 36 of file lib/taxplaner.php. Referenced by set(). |
|
|
gold production
Definition at line 39 of file lib/taxplaner.php. Referenced by getTax(), getTaxDetails(), and set(). |
|
|
growth infuence
Definition at line 31 of file lib/taxplaner.php. Referenced by set(). |
|
|
influence on taxes
Definition at line 32 of file lib/taxplaner.php. Referenced by set(). |
|
|
taxrate
Definition at line 33 of file lib/taxplaner.php. Referenced by getTax(), getTaxDetails(), and set(). |
|
|
total food production
Definition at line 40 of file lib/taxplaner.php. |
|
|
unit slots
Definition at line 37 of file lib/taxplaner.php. Referenced by set(). |
|
|
workers (not free workers)
Definition at line 34 of file lib/taxplaner.php. Referenced by set(). |
1.4.2