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

tmineattacksunit Class Reference

#include <attack.h>

Inheritance diagram for tmineattacksunit:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int getAttackingPlayer ()
int getDefendingPlayer ()
 tmineattacksunit (tfield *mineposition, int minenum, Vehicle *&attackedunit)
void setup (tfield *mineposition, int minenum, Vehicle *&attackedunit)
void setresult (void)
 Writes the result of the attack calculation to the actual units.
MinegetFirstMine ()
void visit (FightVisitor &visitor)
VehiclegetTarget ()

Constructor & Destructor Documentation

tmineattacksunit::tmineattacksunit tfield mineposition,
int  minenum,
Vehicle *&  attackedunit
 

Calculates the fight if a unit drives onto a mine.

Parameters:
mineposition The field on which the mine was placed
minenum The number of a specific mine which explodes. If -1 , all mines on this field which are able to attack the unit will explode.
attackedunit The unit which moved onto the minefield.

Definition at line 519 of file attack.cpp.

References setup().


Member Function Documentation

int tmineattacksunit::getAttackingPlayer  )  [inline, virtual]
 

Implements tfight.

Definition at line 211 of file attack.h.

int tmineattacksunit::getDefendingPlayer  )  [inline, virtual]
 

Implements tfight.

Definition at line 215 of file attack.h.

References ContainerBase::getOwner().

Mine * tmineattacksunit::getFirstMine  ) 
 

Definition at line 615 of file attack.cpp.

References tfield::mines.

Referenced by GetAttackerImage::visit().

Vehicle* tmineattacksunit::getTarget  )  [inline]
 

Definition at line 237 of file attack.h.

Referenced by BattleSoundPlayer::visit(), and GetTargetImage::visit().

void tmineattacksunit::setresult void   )  [virtual]
 

Writes the result of the attack calculation to the actual units.

Implements tfight.

Definition at line 593 of file attack.cpp.

References tfight::tavalues::damage, ContainerBase::damage, tfight::dv, tfield::mines, and tfield::removemine().

Referenced by BaseVehicleMovement::moveunitxy().

void tmineattacksunit::setup tfield mineposition,
int  minenum,
Vehicle *&  attackedunit
 

Definition at line 524 of file attack.cpp.

References tfight::tavalues::armor, tfight::tavalues::attackbonus, tfight::av, chtieffliegend, cmantipersonnelmine, cmm_trooper, tfight::tavalues::color, cwminen, ContainerBase::damage, tfight::tavalues::damage, tfight::tavalues::defensebonus, tfight::dist, tfight::dv, errorMessage(), Vehicle::experience, tfight::tavalues::experience, Vehicle::getArmor(), tfield::getMine(), ContainerBase::getOwner(), tfight::tavalues::height, Vehicle::height, tfight::tavalues::hemming, Vehicletype::initiative, tfight::tavalues::initiative, tfight::tavalues::kamikaze, tfield::mines, Vehicletype::movemalustyp, Mine::strength, tfight::tavalues::strength, Vehicle::typ, Mine::type, tfight::tavalues::weapcount, tfight::tavalues::weapnum, and tfight::tavalues::weapontype.

Referenced by tmineattacksunit().

void tmineattacksunit::visit FightVisitor visitor  )  [inline, virtual]
 

Implements tfight.

Definition at line 232 of file attack.h.

References FightVisitor::visit().


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