Advanced Strategic Command
Classes | Macros | Functions | Variables
vehicletype.h File Reference
#include "typen.h"
#include "containerbase.h"
#include "ascstring.h"
#include "baseaiinterface.h"
#include "terraintype.h"
#include "research.h"
#include "playercolor.h"
Include dependency graph for vehicletype.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SingleWeapon
 A single weapon of a #Vehicletype. More...
 
class  UnitWeapon
 all the weapons of a #Vehicletype More...
 
class  VehicleType
 The class describing properties that are common to all vehicles of a certain kind. More...
 
class  VehicleType::HeightChangeMethod
 
struct  VehicleType::JumpDrive
 

Macros

#define weaponTypeNum   13
 
#define cwcruisemissilen   0
 
#define cwcruisemissileb   ( 1 << cwcruisemissilen )
 
#define cwminen   1
 
#define cwmineb   ( 1 << cwminen )
 
#define cwbombn   2
 
#define cwbombb   ( 1 << cwbombn )
 
#define cwlargemissilen   3
 
#define cwlargemissileb   ( 1 << cwlargemissilen )
 
#define cwsmallmissilen   4
 
#define cwsmallmissileb   ( 1 << cwsmallmissilen )
 
#define cwtorpedon   5
 
#define cwtorpedob   ( 1 << cwtorpedon )
 
#define cwmachinegunn   6
 
#define cwmachinegunb   ( 1 << cwmachinegunn )
 
#define cwcannonn   7
 
#define cwcannonb   ( 1 << cwcannonn )
 
#define cwweapon   ( cwcruisemissileb | cwbombb | cwlargemissileb | cwsmallmissileb | cwtorpedob | cwmachinegunb | cwcannonb | cwlaserb )
 
#define cwshootablen   11
 
#define cwshootableb   ( 1 << cwshootablen )
 
#define cwlasern   10
 
#define cwlaserb   ( 1 << cwlasern )
 
#define cwammunitionn   9
 
#define cwammunitionb   ( 1 << cwammunitionn )
 
#define cwservicen   8
 
#define cwserviceb   ( 1 << cwservicen )
 
#define cwobjectplacementn   12
 
#define cwobjectplacementb   ( 1 << cwobjectplacementn )
 

Functions

ASCString getUnitReference (Vehicle *veh)
 

Variables

const char * cwaffentypen [weaponTypeNum]
 
const int ammoProductionCost [weaponTypeNum][3]
 
const bool weaponAmmo [weaponTypeNum]
 

Macro Definition Documentation

#define cwammunitionb   ( 1 << cwammunitionn )

Definition at line 87 of file vehicletype.h.

Referenced by SingleWeapon::canRefuel().

#define cwammunitionn   9

Definition at line 86 of file vehicletype.h.

#define cwbombb   ( 1 << cwbombn )

Definition at line 70 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwbombn   2
#define cwcannonb   ( 1 << cwcannonn )

Definition at line 80 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwcannonn   7
#define cwcruisemissileb   ( 1 << cwcruisemissilen )

Definition at line 66 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwcruisemissilen   0
#define cwlargemissileb   ( 1 << cwlargemissilen )

Definition at line 72 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwlargemissilen   3
#define cwlaserb   ( 1 << cwlasern )

Definition at line 85 of file vehicletype.h.

Referenced by Vehicle::endOwnTurn(), and SingleWeapon::requiresAmmo().

#define cwlasern   10
#define cwmachinegunb   ( 1 << cwmachinegunn )

Definition at line 78 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwmachinegunn   6
#define cwmineb   ( 1 << cwminen )

Definition at line 68 of file vehicletype.h.

Referenced by SingleWeapon::getScalarWeaponType(), and SingleWeapon::requiresAmmo().

#define cwminen   1
#define cwobjectplacementb   ( 1 << cwobjectplacementn )

Definition at line 91 of file vehicletype.h.

Referenced by SingleWeapon::placeObjects().

#define cwobjectplacementn   12

Definition at line 90 of file vehicletype.h.

#define cwserviceb   ( 1 << cwservicen )

Definition at line 89 of file vehicletype.h.

Referenced by SingleWeapon::service().

#define cwservicen   8
#define cwshootableb   ( 1 << cwshootablen )

Definition at line 83 of file vehicletype.h.

Referenced by SingleWeapon::shootable().

#define cwshootablen   11

Definition at line 82 of file vehicletype.h.

#define cwsmallmissileb   ( 1 << cwsmallmissilen )

Definition at line 74 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwsmallmissilen   4
#define cwtorpedob   ( 1 << cwtorpedon )

Definition at line 76 of file vehicletype.h.

Referenced by GuiFunctions::AttackGui::getImage().

#define cwtorpedon   5
#define weaponTypeNum   13

Function Documentation

ASCString getUnitReference ( Vehicle veh)

Variable Documentation

const int ammoProductionCost[weaponTypeNum][3]
const char* cwaffentypen[weaponTypeNum]
const bool weaponAmmo[weaponTypeNum]

Definition at line 92 of file vehicletype.cpp.

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