Advanced Strategic Command
Variables
vehicletype.cpp File Reference

The #Vehicletype class. More...

#include <algorithm>
#include "global.h"
#include "vehicletype.h"
#include "sgstream.h"
#include "graphicset.h"
#include "terraintype.h"
#include "objecttype.h"
#include "textfileparser.h"
#include "textfiletags.h"
#include "textfile_evaluation.h"
#include "graphics/blitter.h"
#include "graphics/ColorTransform_PlayerColor.h"
#include "unitcostcalculator-standard.h"
#include "unitcostcalculator-pbp.h"
Include dependency graph for vehicletype.cpp:

Go to the source code of this file.

Variables

const char * cwaffentypen [weaponTypeNum]
 
const int ammoProductionCost [weaponTypeNum][3]
 
const bool weaponAmmo [weaponTypeNum]
 
const int vehicle_version = 34
 
const int vehicleHeightChangeMethodVersion = 1
 

Detailed Description

The #Vehicletype class.

Definition in file vehicletype.cpp.

Variable Documentation

const int ammoProductionCost[weaponTypeNum][3]
Initial value:
= { { 1500,1500,1500 },
{10, 10, 10},
{40, 40, 40},
{200, 200, 200},
{50, 50, 50},
{20, 30, 40},
{1, 1, 1},
{5, 5, 1},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0}
}

Definition at line 75 of file vehicletype.cpp.

Referenced by trunreplay::execnextreplaymove(), and VehicleProduction_SelectionItemFactory::getCost().

const char* cwaffentypen[weaponTypeNum]
Initial value:
= {"cruise missile", "mine", "bomb", "large missile", "small missile", "torpedo", "machine gun",
"cannon", "service", "ammunition refuel", "laser", "shootable", "object placement"
}

Definition at line 71 of file vehicletype.cpp.

Referenced by GuiFunctions::AttackGui::getName(), SingleWeapon::getName(), AmmoTransferrable::getName(), BuildingValues::init(), tnetworkloaders::loadnwgame(), and showCargoSummary().

const int vehicle_version = 34

Definition at line 141 of file vehicletype.cpp.

Referenced by VehicleType::read(), and VehicleType::write().

const int vehicleHeightChangeMethodVersion = 1

Definition at line 1311 of file vehicletype.cpp.

const bool weaponAmmo[weaponTypeNum]
Initial value:
= {
true, true, true, true, true, true, true, true, false, false, false, false, false
}

Definition at line 92 of file vehicletype.cpp.

Referenced by ammoCounter(), ServiceChecker::check(), and showCargoSummary().