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

BaseVehicleMovement Class Reference

#include <unitctrl.h>

Inheritance diagram for BaseVehicleMovement:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BaseVehicleMovement (VehicleActionType _actionType, PPendingVehicleActions _pva, MapDisplayInterface *md)
 BaseVehicleMovement (MapDisplayInterface *md)
int execute (Vehicle *veh, int x, int y, int step, int height, int noInterrupt)
VehiclegetVehicle (void)
void registerMapDisplay (MapDisplayInterface *_mapDisplay)
virtual int getStatus (void)
int available (Vehicle *veh) const

Public Attributes

AStar3D::Path path
bool attackedByReactionFire

Protected Member Functions

int moveunitxy (AStar3D::Path &pathToMove, int noInterrupt=-1)

Protected Attributes

MapDisplayInterfacemapDisplay
int status
Vehiclevehicle

Classes

class  PathFinder

Constructor & Destructor Documentation

BaseVehicleMovement::BaseVehicleMovement VehicleActionType  _actionType,
PPendingVehicleActions  _pva,
MapDisplayInterface md
[inline]
 

Definition at line 126 of file unitctrl.h.

BaseVehicleMovement::BaseVehicleMovement MapDisplayInterface md  )  [inline]
 

Definition at line 127 of file unitctrl.h.


Member Function Documentation

int BaseVehicleMovement::available Vehicle veh  )  const [virtual]
 

Implements VehicleAction.

Reimplemented in VehicleMovement, IncreaseVehicleHeight, and DecreaseVehicleHeight.

Definition at line 647 of file unitctrl.cpp.

References Vehicle::canMove(), and status.

int BaseVehicleMovement::execute Vehicle veh,
int  x,
int  y,
int  step,
int  height,
int  noInterrupt
[virtual]
 

Implements VehicleAction.

Reimplemented in VehicleMovement, and ChangeVehicleHeight.

Definition at line 588 of file unitctrl.cpp.

References actmap, ContainerBase::damage, AStar3D::findPath(), GameMap::getUnit(), logtoreplayinfo(), mapDisplay, maxint, moveunitxy(), Vehicle::networkid, path, rpl_move5, MapCoordinate3D::setnum(), MapDisplayInterface::startAction(), status, MapDisplayInterface::stopAction(), vehicle, Vehicle::xpos, and Vehicle::ypos.

Referenced by ChangeVehicleHeight::execute(), and VehicleMovement::execute().

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

Implements VehicleAction.

Definition at line 133 of file unitctrl.h.

References status.

Referenced by GuiFunctions::Descend::available(), GuiFunctions::Ascend::available(), GuiFunctions::Movement::available(), trunreplay::execnextreplaymove(), GuiFunctions::Descend::execute(), GuiFunctions::Ascend::execute(), and GuiFunctions::Movement::execute().

Vehicle* BaseVehicleMovement::getVehicle void   )  [inline]
 

Definition at line 131 of file unitctrl.h.

References vehicle.

int BaseVehicleMovement::moveunitxy AStar3D::Path pathToMove,
int  noInterrupt = -1
[protected]
 

Definition at line 231 of file unitctrl.cpp.

References SoundLoopManager::activate(), actmap, ContainerBase::addToCargo(), attackedByReactionFire, beeline(), tfield::building, tfight::calc(), calcMoveMalus(), cconnection_areaentered_anyunit, cconnection_areaentered_specificunit, cgp_initialMapVisibility, treactionfire::checkfield(), chfliegend, chhochfliegend, chtieffliegend, tfield::connection, SoundList::conquer_building, Building::convert(), tfight::tavalues::damage, MapDisplayInterface::displayMap(), MapDisplayInterface::displayMovingUnit(), tfight::dv, evaluateviewcalculation(), evaluatevisibilityfield(), SoundLoopManager::fadeOut(), fieldCrossed, fieldvisiblenow(), treactionfire::finalCheck(), Resources::Fuel, tfield::getContainer(), getdirection(), getfield(), SoundList::getInstance(), Vehicle::getMovement(), getNeighbouringFieldCoordinate(), ContainerBase::getOwner(), GameMap::getPlayer(), GameMap::getPlayerView(), GameMap::getUnit(), Vehicle::height, Vehicletype::height, treactionfire::init(), CGameOptions::Instance(), log2(), mapDisplay, maxmalq, tfield::mineattacks(), GameTime::move(), SoundList::moving, multiThreadedViewCalculation, npop, npush, path, BackgroundViewCalculator::postData(), printTimer(), ContainerBase::removeUnitFromCargo(), GameTime::set(), MapCoordinate3D::setnum(), tmineattacksunit::setresult(), GameMap::time, GameTime::turn(), Vehicle::typ, updateFieldInfo, tfield::vehicle, vehicle, BackgroundViewCalculator::waitForCompletion(), GameMap::weather, GameMap::Weather::windSpeed, MapCoordinate::x, Vehicle::xpos, MapCoordinate::y, and Vehicle::ypos.

Referenced by execute().

void BaseVehicleMovement::registerMapDisplay MapDisplayInterface _mapDisplay  )  [inline]
 

Definition at line 132 of file unitctrl.h.

References mapDisplay.


Member Data Documentation

bool BaseVehicleMovement::attackedByReactionFire
 

Definition at line 130 of file unitctrl.h.

Referenced by moveunitxy().

MapDisplayInterface* BaseVehicleMovement::mapDisplay [protected]
 

Definition at line 123 of file unitctrl.h.

Referenced by execute(), moveunitxy(), and registerMapDisplay().

AStar3D::Path BaseVehicleMovement::path
 

Definition at line 127 of file unitctrl.h.

Referenced by GuiFunctions::Descend::available(), GuiFunctions::Ascend::available(), GuiFunctions::Movement::available(), ChangeVehicleHeight::execute(), VehicleMovement::execute(), execute(), GuiFunctions::Descend::execute(), GuiFunctions::Ascend::execute(), GuiFunctions::Movement::execute(), and moveunitxy().

int BaseVehicleMovement::status [protected]
 

Definition at line 124 of file unitctrl.h.

Referenced by VehicleMovement::available(), available(), BackgroundViewCalculator::BackgroundViewCalculator(), BackgroundViewCalculator::dataAvail(), ChangeVehicleHeight::execute(), VehicleMovement::execute(), execute(), getStatus(), BackgroundViewCalculator::isCalculationCompleted(), BackgroundViewCalculator::postData(), and BackgroundViewCalculator::setCalculationCompletion().

Vehicle* BaseVehicleMovement::vehicle [protected]
 

Definition at line 138 of file unitctrl.h.

Referenced by ChangeVehicleHeight::execute(), VehicleMovement::execute(), execute(), getVehicle(), and moveunitxy().


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