WeapDist Class Reference

Some very old system to calculate the weapon efficiency over a given distance. More...

#include <attack.h>

List of all members.

Static Public Member Functions

static float getWeaponStrength (const SingleWeapon *weap, int targetFieldWeather=0, int dist=-1, int attacker_height=-1, int defender_height=-1, int reldiff=-1)


Detailed Description

Some very old system to calculate the weapon efficiency over a given distance.

Definition at line 351 of file attack.h.


Member Function Documentation

float WeapDist::getWeaponStrength ( const SingleWeapon weap,
int  targetFieldWeather = 0,
int  dist = -1,
int  attacker_height = -1,
int  defender_height = -1,
int  reldiff = -1 
) [static]

Definition at line 1019 of file attack.cpp.

References chsatellit, chtieffliegend, SingleWeapon::efficiency, getFirstBit(), getheightdelta(), SingleWeapon::getScalarWeaponType(), SingleWeapon::maxdistance, SingleWeapon::maxstrength, min(), SingleWeapon::mindistance, SingleWeapon::minstrength, ASCString::toString(), and warningMessage().

Referenced by CalculateThreat_VehicleType::calc_threat_vehicletype().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:48:08 2012 for Advanced Strategic Command by  doxygen 1.5.1