Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 343 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 1003 of file attack.cpp.

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

Referenced by CalculateThreat_VehicleType::calc_threat_vehicletype(), tunitattacksobject::setup(), tunitattacksbuilding::setup(), and tunitattacksunit::setup().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:22:24 2008 for Advanced Strategic Command by  doxygen 1.4.2