#include "typen.h"
#include "vehicletype.h"
#include "vehicle.h"
#include "buildings.h"
#include "objects.h"
#include "explosivemines.h"
Include dependency graph for attack.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Typedefs | |
| typedef AttackWeap * | pattackweap |
Functions | |
| pattackweap | attackpossible (const Vehicle *attacker, int x, int y) |
| Is attacker able to attack anything in field x/y ? | |
| bool | attackpossible2u (const Vehicle *attacker, const Vehicle *target, pattackweap attackweap=NULL, int targetheight=-1) |
| Is attacker able to attack target ? Distance is not evaluated. | |
| bool | attackpossible28 (const Vehicle *attacker, const Vehicle *target, pattackweap attackweap=NULL, int targetHeight=-1) |
| Is attacker able to attack target ? Distance is assumed one field. | |
| bool | attackpossible2n (const Vehicle *attacker, const Vehicle *target, pattackweap attackweap=NULL) |
| Is attacker able to attack target ? Actual distance used. | |
| bool | vehicleplattfahrbar (const Vehicle *vehicle, const tfield *field) |
| Can the vehicle drive across the field and destroy any unit there by moving over them? | |
Definition in file attack.h.
|
|
|
|
||||||||||||||||
|
||||||||||||||||||||
|
Is attacker able to attack target ? Distance is assumed one field. The distance is assumed to be 1 field. The routine is used for the movement routines for example, because units moving next to enemies get a movement malus. Does not evaluate any diplomatic states
Definition at line 888 of file attack.cpp. References Vehicle::ammo, UnitWeapon::count, AttackWeap::count, SingleWeapon::efficiency, getheightdelta(), SingleWeapon::getScalarWeaponType(), Vehicle::height, log2(), SingleWeapon::mindistance, minmalq, Vehicletype::movemalustyp, AttackWeap::num, SingleWeapon::offensive(), SingleWeapon::shootable(), SingleWeapon::sourceheight, AttackWeap::strength, SingleWeapon::targ, AttackWeap::target, SingleWeapon::targetingAccuracy, AttackWeap::typ, Vehicle::typ, AttackWeap::vehicle, UnitWeapon::weapon, Vehicletype::weapons, and Vehicle::weapstrength. Referenced by calcMoveMalus(), and fieldAccessible(). |
|
||||||||||||||||
|
||||||||||||||||||||
|
Is attacker able to attack target ? Distance is not evaluated. The distance is not evaluated. The routine is used for the movement routines for example, because the current distance of units A and B is not relevant for the check whether unit A can move across the field where B is standing.
Definition at line 842 of file attack.cpp. References actmap, Vehicle::ammo, UnitWeapon::count, AttackWeap::count, SingleWeapon::efficiency, getheightdelta(), ContainerBase::getOwner(), SingleWeapon::getScalarWeaponType(), Vehicle::height, log2(), Vehicletype::movemalustyp, AttackWeap::num, SingleWeapon::offensive(), GameMap::player, SingleWeapon::shootable(), SingleWeapon::sourceheight, AttackWeap::strength, SingleWeapon::targ, AttackWeap::target, SingleWeapon::targetingAccuracy, AttackWeap::typ, Vehicle::typ, AttackWeap::vehicle, UnitWeapon::weapon, Vehicletype::weapons, and Vehicle::weapstrength. |
|
||||||||||||
|
Can the vehicle drive across the field and destroy any unit there by moving over them?
Definition at line 980 of file attack.cpp. Referenced by fieldAccessible(). |
1.4.2