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

Public Member Functions | |
| int | getAttackingPlayer () |
| int | getDefendingPlayer () |
| tunitattacksobject (Vehicle *attackingunit, int obj_x, int obj_y, int weapon=-1) | |
| void | setup (Vehicle *attackingunit, int obj_x, int obj_y, int weapon) |
| void | setresult (void) |
| Writes the result of the attack calculation to the actual units. | |
| Object * | getTarget () |
| void | visit (FightVisitor &visitor) |
|
||||||||||||||||||||
|
Calculates the fight if one unit attacks the objects at coordinate x/y.
Definition at line 625 of file attack.cpp. References setup(). |
|
|
Reimplemented from UnitAttacksSomething. Definition at line 250 of file attack.h. References UnitAttacksSomething::_attackingunit, and ContainerBase::getOwner(). |
|
|
Implements tfight. |
|
|
|
|
|
Writes the result of the attack calculation to the actual units.
Implements tfight. Definition at line 711 of file attack.cpp. References UnitAttacksSomething::_attackingunit, actmap, Vehicle::ammo, tfight::av, ContainerBase::damage, tfight::tavalues::damage, Object::damage, tfight::dv, getfield(), GameTime::move(), Vehicle::postAttack(), GameTime::set(), GameMap::time, GameTime::turn(), Object::typ, tfight::tavalues::weapcount, and tfight::tavalues::weapnum. Referenced by trunreplay::execnextreplaymove(). |
|
||||||||||||||||||||
|
|
Implements tfight. Definition at line 272 of file attack.h. References FightVisitor::visit(). |
1.4.2