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

Public Member Functions | |
| tunitattacksunit (Vehicle *&attackingunit, Vehicle *&attackedunit, bool respond=true, int weapon=-1, bool reactionfire=false) | |
| void | setup (Vehicle *&attackingunit, Vehicle *&attackedunit, bool respond, int weapon) |
| void | setresult (void) |
| Writes the result of the attack calculation to the actual units. | |
| void | visit (FightVisitor &visitor) |
| Vehicle * | getTarget () |
| int | getDefendingPlayer () |
|
||||||||||||||||||||||||
|
Calculates the fight if one unit attacks another units.
Definition at line 232 of file attack.cpp. References setup(). |
|
|
Implements tfight. Definition at line 164 of file attack.h. References ContainerBase::getOwner(). |
|
|
Definition at line 159 of file attack.h. Referenced by GetTargetImage::visit(). |
|
|
Writes the result of the attack calculation to the actual units.
Implements tfight. Definition at line 368 of file attack.cpp. References UnitAttacksSomething::_attackingunit, actmap, Vehicle::ammo, tfight::av, tfight::tavalues::damage, ContainerBase::damage, tfight::dv, tfight::tavalues::experience, Vehicle::experience, GameTime::move(), Vehicle::networkid, Vehicle::ReactionFire::nonattackableUnits, Vehicle::postAttack(), Vehicle::reactionfire, GameTime::set(), GameMap::time, GameTime::turn(), tfight::tavalues::weapcount, tfight::tavalues::weapnum, and Vehicle::ReactionFire::weaponShots. Referenced by trunreplay::execnextreplaymove(). |
|
||||||||||||||||||||
|
|
Implements tfight. Definition at line 155 of file attack.h. References FightVisitor::visit(). |
1.4.2