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

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.

Defines

#define cwaffentypennum   13
#define cwcruisemissile   0
#define cwcruisemissileb   ( 1 << cwcruisemissile )
#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 [cwaffentypennum]
const int cwaffenproduktionskosten [cwaffentypennum][3]
const bool weaponAmmo [cwaffentypennum]


Define Documentation

#define cwaffentypennum   13
 

Definition at line 63 of file vehicletype.h.

Referenced by ammoCounter(), ServiceChecker::check(), InternalAmmoTransferHandler::InternalAmmoTransferHandler(), InternalAmmoTransferHandler::performTransfer(), SingleWeapon::runTextIO(), and showCargoSummary().

#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
 

Definition at line 69 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwcannonb   ( 1 << cwcannonn )
 

Definition at line 80 of file vehicletype.h.

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

#define cwcannonn   7
 

Definition at line 79 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwcruisemissile   0
 

Definition at line 65 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwcruisemissileb   ( 1 << cwcruisemissile )
 

Definition at line 66 of file vehicletype.h.

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

#define cwlargemissileb   ( 1 << cwlargemissilen )
 

Definition at line 72 of file vehicletype.h.

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

#define cwlargemissilen   3
 

Definition at line 71 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwlaserb   ( 1 << cwlasern )
 

Definition at line 85 of file vehicletype.h.

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

#define cwlasern   10
 

Definition at line 84 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), and SingleWeapon::getIconFileName().

#define cwmachinegunb   ( 1 << cwmachinegunn )
 

Definition at line 78 of file vehicletype.h.

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

#define cwmachinegunn   6
 

Definition at line 77 of file vehicletype.h.

Referenced by Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwmineb   ( 1 << cwminen )
 

Definition at line 68 of file vehicletype.h.

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

#define cwminen   1
 

Definition at line 67 of file vehicletype.h.

Referenced by Vehicletype::calcProductionsCost(), trunreplay::execnextreplaymove(), SingleWeapon::getIconFileName(), tputmine::initpm(), putMine(), tmineattacksunit::setup(), CargoDialog::showAmmo(), and DashboardPanel::showUnitData().

#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
 

Definition at line 88 of file vehicletype.h.

Referenced by assignWeaponInfo(), SingleWeapon::getIconFileName(), and SingleWeapon::getName().

#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
 

Definition at line 73 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwtorpedob   ( 1 << cwtorpedon )
 

Definition at line 76 of file vehicletype.h.

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

#define cwtorpedon   5
 

Definition at line 75 of file vehicletype.h.

Referenced by attackpossible(), Vehicletype::calcProductionsCost(), SingleWeapon::getIconFileName(), and CargoDialog::showAmmo().

#define cwweapon   ( cwcruisemissileb | cwbombb | cwlargemissileb | cwsmallmissileb | cwtorpedob | cwmachinegunb | cwcannonb | cwlaserb )
 

Definition at line 81 of file vehicletype.h.

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


Function Documentation

ASCString getUnitReference Vehicle veh  ) 
 

Definition at line 1765 of file vehicle.cpp.

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


Variable Documentation

const int cwaffenproduktionskosten[cwaffentypennum][3]
 

Definition at line 74 of file vehicletype.cpp.

Referenced by ContainerControls::ammoProducable(), VehicleService::FieldSearch::checkBuilding2Vehicle(), VehicleProduction_SelectionItemFactory::getCost(), and ContainerControls::produceAmmo().

const char* cwaffentypen[cwaffentypennum]
 

Definition at line 69 of file vehicletype.cpp.

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

const bool weaponAmmo[cwaffentypennum]
 

Definition at line 95 of file vehicletype.cpp.

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


Generated on Tue Jun 24 02:14:47 2008 for Advanced Strategic Command by  doxygen 1.4.2