Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Taxplaner Class Reference

List of all members.

Detailed Description

Class to calculate best taxes.

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.

Author:
Robert Vock <smir@andaloria.de>

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 & Destructor Documentation

Taxplaner::Taxplaner  ) 
 

constructor.

Definition at line 45 of file lib/taxplaner.php.


Member Function Documentation

Taxplaner::getTax intTax = 0  ) 
 

get an array with food and gold values for a specific tax rate

Parameters:
$intTax tax rate, if not set, it will use the tax rate of the set() function
Returns:
array

Definition at line 100 of file lib/taxplaner.php.

References $intFood, $intGold, and $intTax.

Referenced by taxCalc().

Taxplaner::getTaxDetails intTax = 0  ) 
 

get details for a specific tax rate

Parameters:
$intTax tax rate, if not set, it will use the tax rate of the set() function
Returns:
array

Definition at line 126 of file lib/taxplaner.php.

References $intFood, $intGold, and $intTax.

Taxplaner::set intGrowth,
intInflTax,
intTax,
intWorker,
intFood,
intFoodBase,
intUnit,
intBuild,
intGold
 

set the needed values

Parameters:
$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

Definition at line 61 of file lib/taxplaner.php.

References $intBuild, $intFood, $intFoodBase, $intGold, $intGrowth, $intInflTax, $intTax, $intUnit, and $intWorker.

Taxplaner::taxCalc intStartTax,
intEndTax
 

get an array with food and gold values in an specified intervall

Parameters:
$intStartTax start value of tax
$intEndTax end value of tax
Returns:
array (tax,food,gold)

Definition at line 81 of file lib/taxplaner.php.

References $i, and getTax().


Member Data Documentation

Taxplaner::$intBuild
 

building slots

Definition at line 38 of file lib/taxplaner.php.

Referenced by set().

Taxplaner::$intFood
 

food production

Definition at line 35 of file lib/taxplaner.php.

Referenced by getTax(), getTaxDetails(), and set().

Taxplaner::$intFoodBase
 

food base production

Definition at line 36 of file lib/taxplaner.php.

Referenced by set().

Taxplaner::$intGold
 

gold production

Definition at line 39 of file lib/taxplaner.php.

Referenced by getTax(), getTaxDetails(), and set().

Taxplaner::$intGrowth
 

growth infuence

Definition at line 31 of file lib/taxplaner.php.

Referenced by set().

Taxplaner::$intInflTax
 

influence on taxes

Definition at line 32 of file lib/taxplaner.php.

Referenced by set().

Taxplaner::$intTax
 

taxrate

Definition at line 33 of file lib/taxplaner.php.

Referenced by getTax(), getTaxDetails(), and set().

Taxplaner::$intTotalFood
 

total food production

Definition at line 40 of file lib/taxplaner.php.

Taxplaner::$intUnit
 

unit slots

Definition at line 37 of file lib/taxplaner.php.

Referenced by set().

Taxplaner::$intWorker
 

workers (not free workers)

Definition at line 34 of file lib/taxplaner.php.

Referenced by set().


The documentation for this class was generated from the following file:
Generated on Sun May 8 19:29:46 2005 for PhpMap by  doxygen 1.4.2