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

#include <reactionfire.h>

Inheritance diagram for tsearchreactionfireingunits:
Inheritance graph
[legend]

Public Member Functions

 tsearchreactionfireingunits (GameMap *gamemap)
 
void init (Vehicle *eht, const AStar3D::Path &fieldlist)
 
void init (Vehicle *eht, const MapCoordinate3D &pos)
 
int checkfield (const MapCoordinate3D &pos, Vehicle *&eht, const Context &context)
 
virtual int finalCheck (int currentPlayer, const Context &context)
 
 ~tsearchreactionfireingunits ()
 
- Public Member Functions inherited from treactionfire
virtual ~treactionfire ()
 

Protected Types

typedef map< const Vehicle *, int > VisibleUnits
 

Protected Member Functions

int attack (Vehicle *attacker, Vehicle *target, const Context &context)
 
void addunit (Vehicle *vehicle)
 
void removeunit (Vehicle *vehicle)
 

Protected Attributes

VisibleUnits visibleUnits
 

Static Protected Attributes

static int maxshootdist [8] = { -1, -1, -1, -1, -1, -1, -1, -1 }
 

Detailed Description

Definition at line 45 of file reactionfire.h.

Member Typedef Documentation

typedef map<const Vehicle*,int> tsearchreactionfireingunits::VisibleUnits
protected

Definition at line 58 of file reactionfire.h.

Constructor & Destructor Documentation

tsearchreactionfireingunits::tsearchreactionfireingunits ( GameMap gamemap)

Definition at line 51 of file reactionfire.cpp.

References rfPlayerCount.

tsearchreactionfireingunits::~tsearchreactionfireingunits ( )

Definition at line 355 of file reactionfire.cpp.

References tunitlist::next, and rfPlayerCount.

Member Function Documentation

void tsearchreactionfireingunits::addunit ( Vehicle vehicle)
protected

Definition at line 175 of file reactionfire.cpp.

References tunitlist::eht, ContainerBase::getOwner(), and tunitlist::next.

int tsearchreactionfireingunits::attack ( Vehicle attacker,
Vehicle target,
const Context context 
)
protected
int tsearchreactionfireingunits::checkfield ( const MapCoordinate3D pos,
Vehicle *&  eht,
const Context context 
)
virtual
int tsearchreactionfireingunits::finalCheck ( int  currentPlayer,
const Context context 
)
virtual
void tsearchreactionfireingunits::init ( Vehicle eht,
const AStar3D::Path fieldlist 
)
virtual

Implements treactionfire.

Definition at line 151 of file reactionfire.cpp.

References getFirstBit(), Vehicle::height, and maxint.

Referenced by JumpDriveCommand::go().

void tsearchreactionfireingunits::init ( Vehicle eht,
const MapCoordinate3D pos 
)
void tsearchreactionfireingunits::removeunit ( Vehicle vehicle)
protected

Definition at line 188 of file reactionfire.cpp.

References tunitlist::eht, ContainerBase::getOwner(), and tunitlist::next.

Member Data Documentation

int tsearchreactionfireingunits::maxshootdist = { -1, -1, -1, -1, -1, -1, -1, -1 }
staticprotected

Definition at line 54 of file reactionfire.h.

Referenced by finalCheck().

VisibleUnits tsearchreactionfireingunits::visibleUnits
protected

Definition at line 59 of file reactionfire.h.

Referenced by finalCheck().


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