#include <attack.h>
Inheritance diagram for tfight:

Public Member Functions | |
| void | calc (void) |
| Performs the calculation of the attack. The result is only stored in the av and dv structures and is not written to the map. | |
| virtual void | setresult (void)=0 |
| Writes the result of the attack calculation to the actual units. | |
| virtual void | visit (FightVisitor &visitor)=0 |
| virtual int | getAttackingPlayer ()=0 |
| virtual int | getDefendingPlayer ()=0 |
Public Attributes | |
| tfight::tavalues | av |
| tfight::tavalues | dv |
Protected Member Functions | |
| tfight (void) | |
Protected Attributes | |
| int | dist |
Classes | |
| struct | tavalues |
|
|
Definition at line 137 of file attack.cpp. |
|
|
Performs the calculation of the attack. The result is only stored in the av and dv structures and is not written to the map.
Definition at line 142 of file attack.cpp. References actmap, tfight::tavalues::armor, tfight::tavalues::attackbonus, av, cgp_attackPower, tfight::tavalues::damage, AttackFormula::defense_defensebonus(), AttackFormula::defense_experience(), tfight::tavalues::defensebonus, dv, tfight::tavalues::experience, GameMap::getgameparameter(), tfight::tavalues::hemming, tfight::tavalues::kamikaze, maxunitexperience, tfight::tavalues::strength, AttackFormula::strength_attackbonus(), AttackFormula::strength_damage(), AttackFormula::strength_experience(), warning(), and tfight::tavalues::weapcount. Referenced by trunreplay::execnextreplaymove(), VehicleAttack::execute(), GuiFunctions::AttackGui::getName(), and BaseVehicleMovement::moveunitxy(). |
|
|
Implemented in UnitAttacksSomething, tunitattacksbuilding, tmineattacksunit, and tunitattacksobject. |
|
|
Implemented in tunitattacksunit, tunitattacksbuilding, tmineattacksunit, and tunitattacksobject. |
|
|
Writes the result of the attack calculation to the actual units.
Implemented in tunitattacksunit, tunitattacksbuilding, tmineattacksunit, and tunitattacksobject. Referenced by VehicleAttack::execute(). |
|
|
Implemented in tunitattacksunit, tunitattacksbuilding, tmineattacksunit, and tunitattacksobject. Referenced by BattleSoundPlayer::BattleSoundPlayer(), GetAttackerImage::GetAttackerImage(), GetTargetImage::GetTargetImage(), and BattleSoundPlayer::playEnd(). |
|
|
|
Definition at line 81 of file attack.h. Referenced by tunitattacksobject::setup(), tmineattacksunit::setup(), tunitattacksbuilding::setup(), and tunitattacksunit::setup(). |
|
1.4.2