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 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 = 33
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 74 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 70 of file vehicletype.cpp.

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

const int vehicle_version = 33

Definition at line 140 of file vehicletype.cpp.

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

const int vehicleHeightChangeMethodVersion = 1

Definition at line 1295 of file vehicletype.cpp.

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

const bool weaponAmmo[weaponTypeNum]

Initial value:

 {
   true, true, true, true, true, true, true, true, false, false, false, false, false
}

Definition at line 91 of file vehicletype.cpp.

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


Generated on Mon May 21 01:45:48 2012 for Advanced Strategic Command by  doxygen 1.5.1