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

#include <attack.h>

Inheritance diagram for UnitAttacksSomething:
Inheritance graph
[legend]

Public Member Functions

VehiclegetAttackingUnit ()
 
- Public Member Functions inherited from tfight
void calc (void)
 Performs the calculation of the attack. The result is only stored in the av and dv structures and is not written to the map. More...
 
virtual void setresult (const Context &context)=0
 Writes the result of the attack calculation to the actual units. More...
 
virtual void visit (FightVisitor &visitor)=0
 
virtual int getDefendingPlayer ()=0
 
- Public Member Functions inherited from AttackFormula
 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 ()
 

Protected Member Functions

 UnitAttacksSomething (GameMap *gamemap)
 
int getAttackingPlayer ()
 
- Protected Member Functions inherited from tfight
 tfight (GameMap *gamemap)
 

Protected Attributes

Vehicle_attackingunit
 
- Protected Attributes inherited from tfight
int dist
 
- Protected Attributes inherited from AttackFormula
GameMapgamemap
 

Additional Inherited Members

- Static Public Member Functions inherited from AttackFormula
static float getHemmingFactor (int relDir)
 
- Public Attributes inherited from tfight
struct tfight::tavalues av
 
struct tfight::tavalues dv
 
- Static Public Attributes inherited from AttackFormula
static const int experienceIcons = 24
 

Detailed Description

Definition at line 126 of file attack.h.

Constructor & Destructor Documentation

UnitAttacksSomething::UnitAttacksSomething ( GameMap gamemap)
inlineprotected

Definition at line 129 of file attack.h.

Member Function Documentation

int UnitAttacksSomething::getAttackingPlayer ( )
inlineprotectedvirtual

Implements tfight.

Reimplemented in tunitattacksobject, and tunitattacksbuilding.

Definition at line 132 of file attack.h.

References _attackingunit, and ContainerBase::getOwner().

Vehicle* UnitAttacksSomething::getAttackingUnit ( )
inline

Definition at line 137 of file attack.h.

References _attackingunit.

Referenced by BattleSoundPlayer::visit().

Member Data Documentation

Vehicle* UnitAttacksSomething::_attackingunit
protected

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