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

AttackFormula Class Reference

#include <attack.h>

Inheritance diagram for AttackFormula:

Inheritance graph
[legend]
List of all members.

Public Member Functions

float strength_experience (int experience)
float strength_damage (int damage)
float strength_attackbonus (int abonus)
float strength_hemming (int ax, int ay, Vehicle *d_eht)
float defense_experience (int experience)
float defense_defensebonus (int defensebonus)
virtual ~AttackFormula ()

Static Public Member Functions

static float getHemmingFactor (int relDir)

Constructor & Destructor Documentation

virtual AttackFormula::~AttackFormula  )  [inline, virtual]
 

Definition at line 52 of file attack.h.


Member Function Documentation

float AttackFormula::defense_defensebonus int  defensebonus  ) 
 

Definition at line 129 of file attack.cpp.

Referenced by tfight::calc().

float AttackFormula::defense_experience int  experience  ) 
 

Definition at line 113 of file attack.cpp.

References actmap, cgp_experienceDivisorDefense, GameMap::getgameparameter(), and maxunitexperience.

Referenced by tfight::calc(), and unitStrengthValue().

float AttackFormula::getHemmingFactor int  relDir  )  [static]
 

Definition at line 63 of file attack.cpp.

References sidenum, and warning().

Referenced by strength_hemming().

float AttackFormula::strength_attackbonus int  abonus  ) 
 

Definition at line 122 of file attack.cpp.

Referenced by tfight::calc().

float AttackFormula::strength_damage int  damage  ) 
 

Definition at line 100 of file attack.cpp.

Referenced by tfight::calc(), CalculateThreat_VehicleType::calc_threat_vehicletype(), and unitStrengthValue().

float AttackFormula::strength_experience int  experience  ) 
 

Definition at line 105 of file attack.cpp.

References actmap, cgp_experienceDivisorAttack, GameMap::getgameparameter(), and maxunitexperience.

Referenced by tfight::calc(), CalculateThreat_VehicleType::calc_threat_vehicletype(), and unitStrengthValue().

float AttackFormula::strength_hemming int  ax,
int  ay,
Vehicle d_eht
 

Definition at line 79 of file attack.cpp.

References getdirection(), getHemmingFactor(), sidenum, Vehicle::xpos, and Vehicle::ypos.

Referenced by tunitattacksunit::setup().


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