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

UnitHooveringLogic Class Reference

#include <vehicle.h>

List of all members.

Static Public Member Functions

static int calcFuelUsage (const Vehicle *veh)
static int getEndurance (const Vehicle *veh)
 calculates the time until the unit crashes because of lack of fuel
static int getEndurance (const Vehicletype *veh, int height=-1, int resourceModel=0)


Member Function Documentation

int UnitHooveringLogic::calcFuelUsage const Vehicle veh  )  [static]
 

Definition at line 1776 of file vehicle.cpp.

References chhochfliegend, chtieffliegend, Vehicletype::fuelConsumption, ContainerBase::getMap(), Vehicle::getMovement(), Vehicle::height, Vehicle::maxMovement(), maxwindspeed, minmalq, and Vehicle::typ.

Referenced by GameMap::endTurn(), and getEndurance().

int UnitHooveringLogic::getEndurance const Vehicletype veh,
int  height = -1,
int  resourceModel = 0
[static]
 

Definition at line 1788 of file vehicle.cpp.

References assert, chfliegend, chhochfliegend, chtieffliegend, max(), and minmalq.

int UnitHooveringLogic::getEndurance const Vehicle veh  )  [static]
 

calculates the time until the unit crashes because of lack of fuel

Returns:
time in turns or -1 if the unit can't crash because of missing fuel in its current height

Definition at line 1811 of file vehicle.cpp.

References calcFuelUsage(), chhochfliegend, chtieffliegend, and minmalq.

Referenced by DashboardPanel::showUnitData(), and showUnitEndurance().


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