Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
AttackFormula Class Reference

the core formula, which weighs the different factory that go into the calculation More...

#include <attack.h>

Inheritance diagram for AttackFormula:
Inheritance graph
[legend]

Public Member Functions

 AttackFormula (GameMap *gamemap)
 
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)
 
int getIconIndex (int experience, bool offensive)
 
virtual ~AttackFormula ()
 

Static Public Member Functions

static float getHemmingFactor (int relDir)
 

Static Public Attributes

static const int experienceIcons = 24
 

Protected Attributes

GameMapgamemap
 

Detailed Description

the core formula, which weighs the different factory that go into the calculation

Definition at line 42 of file attack.h.

Constructor & Destructor Documentation

AttackFormula::AttackFormula ( GameMap gamemap)

Definition at line 49 of file attack.cpp.

References gamemap.

virtual AttackFormula::~AttackFormula ( )
inlinevirtual

Definition at line 60 of file attack.h.

Member Function Documentation

float AttackFormula::defense_defensebonus ( int  defensebonus)

Definition at line 150 of file attack.cpp.

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

float AttackFormula::defense_experience ( int  experience)
float AttackFormula::getHemmingFactor ( int  relDir)
static

Definition at line 79 of file attack.cpp.

References sidenum, and warningMessage().

Referenced by strength_hemming().

int AttackFormula::getIconIndex ( int  experience,
bool  offensive 
)
float AttackFormula::strength_attackbonus ( int  abonus)

Definition at line 143 of file attack.cpp.

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

float AttackFormula::strength_damage ( int  damage)

Definition at line 116 of file attack.cpp.

Referenced by tfight::calc(), and StatisticsCalculator::strength().

float AttackFormula::strength_experience ( int  experience)
float AttackFormula::strength_hemming ( int  ax,
int  ay,
Vehicle d_eht 
)

Definition at line 95 of file attack.cpp.

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

Referenced by tunitattacksunit::setup().

Member Data Documentation

const int AttackFormula::experienceIcons = 24
static
GameMap* AttackFormula::gamemap
protected

Definition at line 46 of file attack.h.

Referenced by AttackFormula(), tfight::calc(), defense_experience(), and strength_experience().


The documentation for this class was generated from the following files: