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

VehicleAttack Class Reference

#include <unitctrl.h>

Inheritance diagram for VehicleAttack:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int getStatus (void)
VehiclegetAttacker ()
virtual int available (Vehicle *veh) const
virtual int execute (Vehicle *veh, int x, int y, int step, int _kamikaze, int weapnum)
virtual void registerPVA (VehicleActionType _actionType, PPendingVehicleActions _pva)
 VehicleAttack (MapDisplayInterface *md, PPendingVehicleActions _pva=NULL)
virtual ~VehicleAttack ()

Static Public Member Functions

static bool avail (Vehicle *veh)

Public Attributes

AttackFieldList attackableVehicles
AttackFieldList attackableBuildings
AttackFieldList attackableObjects

Protected Attributes

MapDisplayInterfacemapDisplay

Classes

class  tsearchattackablevehicles

Constructor & Destructor Documentation

VehicleAttack::VehicleAttack MapDisplayInterface md,
PPendingVehicleActions  _pva = NULL
 

Definition at line 993 of file unitctrl.cpp.

References PendingVehicleActions::attack, mapDisplay, and VehicleAction::pva.

VehicleAttack::~VehicleAttack  )  [virtual]
 

Definition at line 1222 of file unitctrl.cpp.

References PendingVehicleActions::attack, and VehicleAction::pva.


Member Function Documentation

bool VehicleAttack::avail Vehicle veh  )  [static]
 

Definition at line 1003 of file unitctrl.cpp.

Referenced by available(), and GuiFunctions::Attack::available().

virtual int VehicleAttack::available Vehicle veh  )  const [inline, virtual]
 

Implements VehicleAction.

Definition at line 263 of file unitctrl.h.

References avail().

int VehicleAttack::execute Vehicle veh,
int  x,
int  y,
int  step,
int  _kamikaze,
int  weapnum
[virtual]
 

Implements VehicleAction.

Definition at line 1014 of file unitctrl.cpp.

References actmap, attackableBuildings, attackableObjects, attackableVehicles, tfight::av, AttackWeap::building, tfight::calc(), tfight::tavalues::damage, MapDisplayInterface::displayActionCursor(), MapDisplayInterface::displayMap(), tfight::dv, evaluateviewcalculation(), fieldvisiblenow(), FieldList< T >::getData(), getfield(), GameMap::getPlayerView(), ContainerBaseType::hasFunction(), Vehicle::height, FieldList< T >::isMember(), logtoreplayinfo(), mapDisplay, ContainerBaseType::MoveAfterAttack, AttackWeap::object, MapDisplayInterface::removeActionCursor(), rpl_attack, Vehicle::setMovement(), tfight::setresult(), SingleWeapon::shootable(), MapDisplayInterface::showBattle(), SingleWeapon::sourceheight, AttackWeap::target, Vehicle::typ, AttackWeap::vehicle, UnitWeapon::weapon, Vehicletype::weapons, Vehicle::xpos, and Vehicle::ypos.

Referenced by GuiFunctions::Attack::execute(), and GuiFunctions::AttackGui::execute().

Vehicle* VehicleAttack::getAttacker  )  [inline]
 

Definition at line 262 of file unitctrl.h.

Referenced by GuiFunctions::AttackGui::getName().

int VehicleAttack::getStatus void   )  [inline, virtual]
 

Implements VehicleAction.

Definition at line 261 of file unitctrl.h.

void VehicleAttack::registerPVA VehicleActionType  _actionType,
PPendingVehicleActions  _pva
[virtual]
 

Reimplemented from VehicleAction.

Definition at line 1214 of file unitctrl.cpp.

References PendingVehicleActions::attack, VehicleAction::pva, and VehicleAction::registerPVA().


Member Data Documentation

AttackFieldList VehicleAttack::attackableBuildings
 

Definition at line 258 of file unitctrl.h.

Referenced by execute(), and GuiFunctions::Attack::execute().

AttackFieldList VehicleAttack::attackableObjects
 

Definition at line 259 of file unitctrl.h.

Referenced by execute(), and GuiFunctions::Attack::execute().

AttackFieldList VehicleAttack::attackableVehicles
 

Definition at line 257 of file unitctrl.h.

Referenced by execute(), and GuiFunctions::Attack::execute().

MapDisplayInterface* VehicleAttack::mapDisplay [protected]
 

Definition at line 255 of file unitctrl.h.

Referenced by execute(), and VehicleAttack().


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