Roland Schmitt <>
Peter Schnebel <>
Definition at line 25 of file lib/fight.php.
Public Member Functions | |
Fight ($booDebug=false) | |
constructor. | |
select ($strUnitData= ', $strTownData= ') | |
prepare data and let the user select which units are attackers | |
calc ($aUnits, $aAttackers, $aDefBoni, $aAttBoni) | |
calculate possible fight outcome | |
Public Attributes | |
$booDebug | |
debug active? |
|
constructor.
Definition at line 33 of file lib/fight.php. References $booDebug. |
|
calculate possible fight outcome
Definition at line 207 of file lib/fight.php. References $aAttackers, $aAttBoni, $aDefBoni, and $i. |
|
prepare data and let the user select which units are attackers
Definition at line 50 of file lib/fight.php. References $aAttBoni, $aDefBoni, $aUnits, $i, $intCount, and $strPlayer. |
|
debug active?
Definition at line 27 of file lib/fight.php. Referenced by Fight(). |