#include <attack.h>
Inheritance diagram for AttackFormula:

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) |
| virtual | ~AttackFormula () |
Static Public Member Functions | |
| static float | getHemmingFactor (int relDir) |
Protected Attributes | |
| GameMap * | gamemap |
Definition at line 42 of file attack.h.
| AttackFormula::AttackFormula | ( | GameMap * | gamemap | ) |
| float AttackFormula::strength_experience | ( | int | experience | ) |
Definition at line 119 of file attack.cpp.
References cgp_experienceDivisorAttack, gamemap, GameMap::getgameparameter(), and maxunitexperience.
Referenced by tfight::calc().
| float AttackFormula::strength_damage | ( | int | damage | ) |
| float AttackFormula::strength_attackbonus | ( | int | abonus | ) |
| float AttackFormula::strength_hemming | ( | int | ax, | |
| int | ay, | |||
| Vehicle * | d_eht | |||
| ) |
Definition at line 93 of file attack.cpp.
References getdirection(), getHemmingFactor(), sidenum, Vehicle::xpos, and Vehicle::ypos.
| float AttackFormula::defense_experience | ( | int | experience | ) |
Definition at line 127 of file attack.cpp.
References cgp_experienceDivisorDefense, gamemap, GameMap::getgameparameter(), and maxunitexperience.
Referenced by tfight::calc().
| float AttackFormula::defense_defensebonus | ( | int | defensebonus | ) |
| float AttackFormula::getHemmingFactor | ( | int | relDir | ) | [static] |
Definition at line 77 of file attack.cpp.
References sidenum, and warningMessage().
Referenced by strength_hemming().
GameMap* AttackFormula::gamemap [protected] |
Definition at line 46 of file attack.h.
Referenced by AttackFormula(), tfight::calc(), defense_experience(), and strength_experience().
1.5.1