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

Public Member Functions | |
| int | getAttackingPlayer () |
| int | getDefendingPlayer () |
| tunitattacksbuilding (Vehicle *attackingunit, int x, int y, int weapon=-1) | |
| void | setup (Vehicle *attackingunit, int x, int y, int weapon) |
| void | setresult (void) |
| Writes the result of the attack calculation to the actual units. | |
| void | visit (FightVisitor &visitor) |
| Building * | getTarget () |
|
||||||||||||||||||||
|
Calculates the fight if one unit attacks the building at coordinate x/y.
Definition at line 407 of file attack.cpp. References setup(). |
|
|
Reimplemented from UnitAttacksSomething. Definition at line 176 of file attack.h. References UnitAttacksSomething::_attackingunit, and ContainerBase::getOwner(). |
|
|
Implements tfight. Definition at line 180 of file attack.h. References ContainerBase::getOwner(). |
|
|
Definition at line 196 of file attack.h. Referenced by GetTargetImage::visit(). |
|
|
Writes the result of the attack calculation to the actual units.
Implements tfight. Definition at line 491 of file attack.cpp. References UnitAttacksSomething::_attackingunit, actmap, Vehicle::ammo, tfight::av, tfight::tavalues::damage, ContainerBase::damage, tfight::dv, GameTime::move(), Vehicle::postAttack(), GameTime::set(), GameMap::time, GameTime::turn(), tfight::tavalues::weapcount, and tfight::tavalues::weapnum. Referenced by trunreplay::execnextreplaymove(). |
|
||||||||||||||||||||
|
|
Implements tfight. Definition at line 192 of file attack.h. References FightVisitor::visit(). |
1.4.2