Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UnitImages< BOGUS > Struct Template Reference

#include <images.h>

Public Types

enum  GAUGES {
  ARMORF, ARMORB, ARMORR, ARMORL,
  ARMOR4, ARMOR5, ARMOR6, ARMOR7,
  FUEL, SHIELDF, SHIELDR, SHIELDL,
  SHIELDB, SHIELD4, SHIELD5, SHIELD6,
  SHIELD7, ENERGY, AUTOPILOT, COLLISION,
  EJECT, LOCK, MISSILELOCK, JUMP,
  ECM, HULL, WARPENERGY, TARGETSHIELDF,
  TARGETSHIELDB, TARGETSHIELDR, TARGETSHIELDL, KPS,
  SETKPS, COCKPIT_FPS, WARPFIELDSTRENGTH, MAXKPS,
  MAXCOMBATKPS, MAXCOMBATABKPS, MASSEFFECT, AUTOPILOT_MODAL,
  SPEC_MODAL, FLIGHTCOMPUTER_MODAL, TURRETCONTROL_MODAL, ECM_MODAL,
  CLOAK_MODAL, TRAVELMODE_MODAL, RECIEVINGFIRE_MODAL, RECEIVINGMISSILES_MODAL,
  RECEIVINGMISSILELOCK_MODAL, RECEIVINGTARGETLOCK_MODAL, COLLISIONWARNING_MODAL, CANJUMP_MODAL,
  CANDOCK_MODAL, NUMGAUGES
}
 
enum  MODALGAUGEVALUES {
  OFF, ON, SWITCHING, ACTIVE,
  FAW, MANEUVER, TRAVEL, NOTAPPLICABLE,
  READY, NODRIVE, TOOFAR, NOTENOUGHENERGY,
  WARNING, NOMINAL, AUTOREADY
}
 

Public Member Functions

 UnitImages ()
 
virtual ~UnitImages ()
 

Public Attributes

StringPool::Reference cockpitImage
 
StringPool::Reference explosion_type
 
Vector CockpitCenter
 
VSSpritepHudImage
 
AnimationpExplosion
 The explosion starts at null, when activated time explode is incremented and ends at null. More...
 
float timeexplode
 
floatcockpit_damage
 
int ecm
 
unsigned char repair_droid
 holds the info for the repair bot type. 0 is no bot; More...
 
float next_repair_time
 
unsigned int next_repair_cargo
 
float cloakenergy
 How much energy cloaking takes per frame. More...
 
int cloakrate
 how fast this starship decloaks/close...if negative, decloaking More...
 
bool cloakglass
 If this unit cloaks like glass or like fading. More...
 
bool forcejump
 if the unit is a wormhole More...
 
float UpgradeVolume
 
float CargoVolume
 
float equipment_volume
 mass just makes you turn worse More...
 
float HiddenCargoVolume
 
std::vector< Cargocargo
 
std::vector< string > destination
 
std::vector< DockingPortsdockingports
 
std::vector< Unit * > clearedunits
 warning unreliable pointer, never dereference! More...
 
std::vector< DockedUnits * > dockedunits
 
UnitContainer DockedTo
 
float unitscale
 
class XMLSerializerunitwriter
 
float fireControlFunctionality
 
float fireControlFunctionalityMax
 
float SPECDriveFunctionality
 
float SPECDriveFunctionalityMax
 
float CommFunctionality
 
float CommFunctionalityMax
 
float LifeSupportFunctionality
 
float LifeSupportFunctionalityMax
 

Detailed Description

template<typename BOGUS>
struct UnitImages< BOGUS >

Definition at line 284 of file images.h.

Member Enumeration Documentation

template<typename BOGUS>
enum UnitImages::GAUGES
Enumerator
ARMORF 
ARMORB 
ARMORR 
ARMORL 
ARMOR4 
ARMOR5 
ARMOR6 
ARMOR7 
FUEL 
SHIELDF 
SHIELDR 
SHIELDL 
SHIELDB 
SHIELD4 
SHIELD5 
SHIELD6 
SHIELD7 
ENERGY 
AUTOPILOT 
COLLISION 
EJECT 
LOCK 
MISSILELOCK 
JUMP 
ECM 
HULL 
WARPENERGY 
TARGETSHIELDF 
TARGETSHIELDB 
TARGETSHIELDR 
TARGETSHIELDL 
KPS 
SETKPS 
COCKPIT_FPS 
WARPFIELDSTRENGTH 
MAXKPS 
MAXCOMBATKPS 
MAXCOMBATABKPS 
MASSEFFECT 
AUTOPILOT_MODAL 
SPEC_MODAL 
FLIGHTCOMPUTER_MODAL 
TURRETCONTROL_MODAL 
ECM_MODAL 
CLOAK_MODAL 
TRAVELMODE_MODAL 
RECIEVINGFIRE_MODAL 
RECEIVINGMISSILES_MODAL 
RECEIVINGMISSILELOCK_MODAL 
RECEIVINGTARGETLOCK_MODAL 
COLLISIONWARNING_MODAL 
CANJUMP_MODAL 
CANDOCK_MODAL 
NUMGAUGES 

Definition at line 342 of file images.h.

343  {
344  //Image-based gauges
348  //target gauges
350  KPS, //KEEP KPS HERE - it marks the start of text-based gauges
352  AUTOPILOT_MODAL, //KEEP first multimodal gauge HERE -- it marks the start of multi-modal gauges
356  NUMGAUGES //KEEP THIS LAST - obvious reasons, marks the end of all gauges
357  };
template<typename BOGUS>
enum UnitImages::MODALGAUGEVALUES
Enumerator
OFF 
ON 
SWITCHING 
ACTIVE 
FAW 
MANEUVER 
TRAVEL 
NOTAPPLICABLE 
READY 
NODRIVE 
TOOFAR 
NOTENOUGHENERGY 
WARNING 
NOMINAL 
AUTOREADY 

Definition at line 358 of file images.h.

Constructor & Destructor Documentation

template<typename BOGUS>
UnitImages< BOGUS >::UnitImages ( )
inline

Definition at line 286 of file images.h.

286 { VSCONSTRUCT1('i'); pHudImage=NULL; pExplosion=NULL;}
template<typename BOGUS >
UnitImages< BOGUS >::~UnitImages ( )
virtual

Definition at line 5 of file images.cpp.

References VSDESTRUCT1.

6 {
7  if (pExplosion)
8  delete pExplosion;
9  if (pHudImage)
10  delete pHudImage;
12 }

Member Data Documentation

template<typename BOGUS>
std::vector< Unit* > UnitImages< BOGUS >::clearedunits

warning unreliable pointer, never dereference!

Definition at line 329 of file images.h.

Referenced by Unit::Dock(), DockToSavedBases(), and Unit::EndRequestClearance().

template<typename BOGUS>
float UnitImages< BOGUS >::cloakenergy

How much energy cloaking takes per frame.

Definition at line 314 of file images.h.

Referenced by ZoneMgr::addDamage(), Unit::Init(), Unit::LoadRow(), showUnitStats(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
bool UnitImages< BOGUS >::cloakglass

If this unit cloaks like glass or like fading.

Definition at line 318 of file images.h.

Referenced by Unit::Init(), Unit::LoadRow(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
int UnitImages< BOGUS >::cloakrate

how fast this starship decloaks/close...if negative, decloaking

Definition at line 316 of file images.h.

Referenced by ZoneMgr::addDamage(), Unit::Init(), Unit::LoadRow(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
Vector UnitImages< BOGUS >::CockpitCenter

Definition at line 300 of file images.h.

Referenced by LoadCockpit(), and Unit::LoadRow().

template<typename BOGUS>
StringPool::Reference UnitImages< BOGUS >::cockpitImage

Definition at line 298 of file images.h.

Referenced by LoadCockpit().

template<typename BOGUS>
float UnitImages< BOGUS >::CommFunctionality
template<typename BOGUS>
float UnitImages< BOGUS >::CommFunctionalityMax
template<typename BOGUS>
std::vector< string > UnitImages< BOGUS >::destination

Definition at line 326 of file images.h.

template<typename BOGUS>
UnitContainer UnitImages< BOGUS >::DockedTo

Definition at line 331 of file images.h.

template<typename BOGUS>
std::vector< DockedUnits* > UnitImages< BOGUS >::dockedunits

Definition at line 330 of file images.h.

Referenced by BaseInterface::Draw(), Unit::ForceDock(), and Unit::UnDock().

template<typename BOGUS>
std::vector< DockingPorts > UnitImages< BOGUS >::dockingports
template<typename BOGUS>
int UnitImages< BOGUS >::ecm

how likely to fool missiles -2 = inactive L2, -1 = inactive L1, 0 = not available, 1 = active L1, 2 = active L2, etc...

Definition at line 308 of file images.h.

Referenced by ZoneMgr::addDamage(), UnitUtil::getECM(), Unit::Init(), Unit::LoadRow(), GameCockpit::LookupUnitStat(), UnitUtil::setECM(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
float UnitImages< BOGUS >::equipment_volume

mass just makes you turn worse

Definition at line 323 of file images.h.

Referenced by Unit::Init(), Unit::LoadRow(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
StringPool::Reference UnitImages< BOGUS >::explosion_type

Definition at line 299 of file images.h.

Referenced by GameUnit< UnitType >::Explode(), and Unit::LoadRow().

template<typename BOGUS>
float UnitImages< BOGUS >::fireControlFunctionality
template<typename BOGUS>
float UnitImages< BOGUS >::fireControlFunctionalityMax
template<typename BOGUS>
bool UnitImages< BOGUS >::forcejump

if the unit is a wormhole

Definition at line 320 of file images.h.

Referenced by Unit::Init(), Unit::jumpReactToCollision(), Unit::LoadRow(), and Unit::WriteUnitString().

template<typename BOGUS>
float UnitImages< BOGUS >::HiddenCargoVolume

Definition at line 324 of file images.h.

Referenced by Unit::Init(), Unit::LoadRow(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
float UnitImages< BOGUS >::LifeSupportFunctionality
template<typename BOGUS>
float UnitImages< BOGUS >::LifeSupportFunctionalityMax
template<typename BOGUS>
unsigned int UnitImages< BOGUS >::next_repair_cargo

Definition at line 312 of file images.h.

Referenced by Unit::Init().

template<typename BOGUS>
float UnitImages< BOGUS >::next_repair_time

Definition at line 311 of file images.h.

Referenced by Unit::Init().

template<typename BOGUS>
Animation* UnitImages< BOGUS >::pExplosion

The explosion starts at null, when activated time explode is incremented and ends at null.

Definition at line 303 of file images.h.

Referenced by GameUnit< UnitType >::Explode(), Unit::Init(), and UnitImages< void >::UnitImages().

template<typename BOGUS>
VSSprite* UnitImages< BOGUS >::pHudImage
template<typename BOGUS>
unsigned char UnitImages< BOGUS >::repair_droid

holds the info for the repair bot type. 0 is no bot;

Definition at line 310 of file images.h.

Referenced by ZoneMgr::addDamage(), Unit::Init(), Unit::LoadRow(), Unit::UpAndDownGrade(), and Unit::WriteUnitString().

template<typename BOGUS>
float UnitImages< BOGUS >::SPECDriveFunctionality
template<typename BOGUS>
float UnitImages< BOGUS >::SPECDriveFunctionalityMax
template<typename BOGUS>
float UnitImages< BOGUS >::timeexplode

Definition at line 304 of file images.h.

Referenced by Unit::Init(), Unit::IsExploding(), and GameUnit< UnitType >::Split().

template<typename BOGUS>
float UnitImages< BOGUS >::unitscale

Definition at line 332 of file images.h.

Referenced by Unit::LoadRow().

template<typename BOGUS>
class XMLSerializer* UnitImages< BOGUS >::unitwriter
template<typename BOGUS>
float UnitImages< BOGUS >::UpgradeVolume

The documentation for this struct was generated from the following files: