#include <vehicle.h>
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) |
|
|
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(). |
|
||||||||||||||||
|
Definition at line 1788 of file vehicle.cpp. References assert, chfliegend, chhochfliegend, chtieffliegend, max(), and minmalq. |
|
|
calculates the time until the unit crashes because of lack of fuel
Definition at line 1811 of file vehicle.cpp. References calcFuelUsage(), chhochfliegend, chtieffliegend, and minmalq. Referenced by DashboardPanel::showUnitData(), and showUnitEndurance(). |
1.4.2