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

Public Member Functions | |
| int | getAttackingPlayer () |
| int | getDefendingPlayer () |
| tmineattacksunit (tfield *mineposition, int minenum, Vehicle *&attackedunit) | |
| void | setup (tfield *mineposition, int minenum, Vehicle *&attackedunit) |
| void | setresult (void) |
| Writes the result of the attack calculation to the actual units. | |
| Mine * | getFirstMine () |
| void | visit (FightVisitor &visitor) |
| Vehicle * | getTarget () |
|
||||||||||||||||
|
Calculates the fight if a unit drives onto a mine.
Definition at line 519 of file attack.cpp. References setup(). |
|
|
Implements tfight. |
|
|
Implements tfight. Definition at line 215 of file attack.h. References ContainerBase::getOwner(). |
|
|
Definition at line 615 of file attack.cpp. References tfield::mines. Referenced by GetAttackerImage::visit(). |
|
|
Definition at line 237 of file attack.h. Referenced by BattleSoundPlayer::visit(), and GetTargetImage::visit(). |
|
|
Writes the result of the attack calculation to the actual units.
Implements tfight. Definition at line 593 of file attack.cpp. References tfight::tavalues::damage, ContainerBase::damage, tfight::dv, tfield::mines, and tfield::removemine(). Referenced by BaseVehicleMovement::moveunitxy(). |
|
||||||||||||||||
|
|
Implements tfight. Definition at line 232 of file attack.h. References FightVisitor::visit(). |
1.4.2