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

VehicleMovement Class Reference

#include <unitctrl.h>

Inheritance diagram for VehicleMovement:

Inheritance graph
[legend]
List of all members.

Public Types

enum  { NoInterrupt = 1, DisableHeightChange = 2 }

Public Member Functions

int available (Vehicle *veh) const
int execute (Vehicle *veh, int x, int y, int step, int height, int capabilities)
virtual void registerPVA (VehicleActionType _actionType, PPendingVehicleActions _pva)
 VehicleMovement (MapDisplayInterface *md, PPendingVehicleActions _pva=NULL)
 ~VehicleMovement ()

Static Public Member Functions

static bool avail (Vehicle *veh)

Public Attributes

IntFieldList reachableFields
IntFieldList reachableFieldsIndirect

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
NoInterrupt 
DisableHeightChange 

Definition at line 162 of file unitctrl.h.


Constructor & Destructor Documentation

VehicleMovement::VehicleMovement MapDisplayInterface md,
PPendingVehicleActions  _pva = NULL
 

Definition at line 696 of file unitctrl.cpp.

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

VehicleMovement::~VehicleMovement  ) 
 

Definition at line 711 of file unitctrl.cpp.

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


Member Function Documentation

bool VehicleMovement::avail Vehicle veh  )  [static]
 

Definition at line 717 of file unitctrl.cpp.

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

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

Reimplemented from BaseVehicleMovement.

Definition at line 159 of file unitctrl.h.

References avail(), and BaseVehicleMovement::status.

Referenced by SearchReconquerBuilding::testfield().

int VehicleMovement::execute Vehicle veh,
int  x,
int  y,
int  step,
int  height,
int  capabilities
[virtual]
 

Reimplemented from BaseVehicleMovement.

Definition at line 737 of file unitctrl.cpp.

References actmap, DisableHeightChange, BaseVehicleMovement::execute(), AStar3D::findPath(), FieldList< T >::getData(), GameMap::getField(), Vehicle::getMovement(), Vehicle::getPosition(), FieldList< T >::isMember(), log2(), mapChanged, maxint, NoInterrupt, BaseVehicleMovement::path, reachableFields, reachableFieldsIndirect, MapCoordinate3D::setnum(), BaseVehicleMovement::status, tfield::unitHere(), and BaseVehicleMovement::vehicle.

Referenced by trunreplay::execnextreplaymove(), GuiFunctions::Movement::execute(), ContainerControls::movement(), and SearchReconquerBuilding::testfield().

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

Reimplemented from VehicleAction.

Definition at line 703 of file unitctrl.cpp.

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

Referenced by CargoGuiFunctions::Movement::execute().


Member Data Documentation

IntFieldList VehicleMovement::reachableFields
 

Definition at line 157 of file unitctrl.h.

Referenced by GuiFunctions::Movement::available(), execute(), GuiFunctions::Movement::execute(), CargoGuiFunctions::Movement::execute(), and SearchReconquerBuilding::testfield().

IntFieldList VehicleMovement::reachableFieldsIndirect
 

Definition at line 158 of file unitctrl.h.

Referenced by execute(), GuiFunctions::Movement::execute(), and CargoGuiFunctions::Movement::execute().


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