Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
WeaponGroup Class Reference

#include <WeaponGroup.h>

List of all members.

Public Member Functions

 WeaponGroup (const char *name)
 ~WeaponGroup ()
void ExecFrame (double factor)
const char * Name () const
const char * Abbreviation () const
void SetName (const char *n)
void SetAbbreviation (const char *a)
bool IsPrimary () const
bool IsDrone () const
bool IsDecoy () const
bool IsProbe () const
bool IsMissile () const
bool IsBeam () const
int Value () const
void AddWeapon (Weapon *w)
int NumWeapons () const
List< Weapon > & GetWeapons ()
bool Contains (const Weapon *w) const
void SelectWeapon (int n)
void CycleWeapon ()
WeaponGetWeapon (int n) const
WeaponGetSelected () const
bool GetTrigger () const
void SetTrigger (bool t=true)
int Ammo () const
float Mass () const
float Resistance () const
void CheckAmmo ()
void SetTarget (SimObject *t, System *sub=0)
SimObjectGetTarget () const
SystemGetSubTarget () const
void DropTarget ()
void SetFiringOrders (int o)
int GetFiringOrders () const
void SetControlMode (int m)
int GetControlMode () const
void SetSweep (int s)
int GetSweep () const
int Status () const
WeaponDesignGetDesign () const
bool CanTarget (DWORD tgt_class) const
void PowerOn ()
void PowerOff ()

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text name
Text abrv
List< Weaponweapons
int selected
bool trigger
int ammo
int orders
int control
int sweep
float mass
float resist

Detailed Description

Definition at line 24 of file WeaponGroup.h.


Constructor & Destructor Documentation

WeaponGroup::WeaponGroup ( const char *  name)

Definition at line 21 of file WeaponGroup.cpp.

WeaponGroup::~WeaponGroup ( )

Definition at line 29 of file WeaponGroup.cpp.


Member Function Documentation

const char* WeaponGroup::Abbreviation ( ) const
inline

Definition at line 36 of file WeaponGroup.h.

void WeaponGroup::AddWeapon ( Weapon w)

Definition at line 107 of file WeaponGroup.cpp.

int WeaponGroup::Ammo ( ) const
inline

Definition at line 63 of file WeaponGroup.h.

bool WeaponGroup::CanTarget ( DWORD  tgt_class) const

Definition at line 164 of file WeaponGroup.cpp.

void WeaponGroup::CheckAmmo ( )

Definition at line 193 of file WeaponGroup.cpp.

bool WeaponGroup::Contains ( const Weapon w) const

Definition at line 125 of file WeaponGroup.cpp.

void WeaponGroup::CycleWeapon ( )

Definition at line 140 of file WeaponGroup.cpp.

void WeaponGroup::DropTarget ( )

Definition at line 242 of file WeaponGroup.cpp.

void WeaponGroup::ExecFrame ( double  factor)

Definition at line 175 of file WeaponGroup.cpp.

int WeaponGroup::GetControlMode ( ) const
inline

Definition at line 75 of file WeaponGroup.h.

WeaponDesign * WeaponGroup::GetDesign ( ) const

Definition at line 252 of file WeaponGroup.cpp.

int WeaponGroup::GetFiringOrders ( ) const
inline

Definition at line 73 of file WeaponGroup.h.

Weapon * WeaponGroup::GetSelected ( ) const

Definition at line 158 of file WeaponGroup.cpp.

System * WeaponGroup::GetSubTarget ( ) const

Definition at line 231 of file WeaponGroup.cpp.

int WeaponGroup::GetSweep ( ) const
inline

Definition at line 77 of file WeaponGroup.h.

SimObject * WeaponGroup::GetTarget ( ) const

Definition at line 220 of file WeaponGroup.cpp.

bool WeaponGroup::GetTrigger ( ) const
inline

Definition at line 61 of file WeaponGroup.h.

Weapon * WeaponGroup::GetWeapon ( int  n) const

Definition at line 149 of file WeaponGroup.cpp.

List< Weapon > & WeaponGroup::GetWeapons ( )

Definition at line 119 of file WeaponGroup.cpp.

bool WeaponGroup::IsBeam ( ) const

Definition at line 96 of file WeaponGroup.cpp.

bool WeaponGroup::IsDecoy ( ) const

Definition at line 69 of file WeaponGroup.cpp.

bool WeaponGroup::IsDrone ( ) const

Definition at line 60 of file WeaponGroup.cpp.

bool WeaponGroup::IsMissile ( ) const

Definition at line 87 of file WeaponGroup.cpp.

bool WeaponGroup::IsPrimary ( ) const

Definition at line 51 of file WeaponGroup.cpp.

bool WeaponGroup::IsProbe ( ) const

Definition at line 78 of file WeaponGroup.cpp.

float WeaponGroup::Mass ( ) const
inline

Definition at line 64 of file WeaponGroup.h.

const char* WeaponGroup::Name ( ) const
inline

Definition at line 35 of file WeaponGroup.h.

int WeaponGroup::NumWeapons ( ) const

Definition at line 113 of file WeaponGroup.cpp.

void WeaponGroup::PowerOff ( )

Definition at line 320 of file WeaponGroup.cpp.

void WeaponGroup::PowerOn ( )

Definition at line 328 of file WeaponGroup.cpp.

float WeaponGroup::Resistance ( ) const
inline

Definition at line 65 of file WeaponGroup.h.

void WeaponGroup::SelectWeapon ( int  n)

Definition at line 133 of file WeaponGroup.cpp.

void WeaponGroup::SetAbbreviation ( const char *  a)

Definition at line 43 of file WeaponGroup.cpp.

void WeaponGroup::SetControlMode ( int  m)

Definition at line 298 of file WeaponGroup.cpp.

void WeaponGroup::SetFiringOrders ( int  o)

Definition at line 288 of file WeaponGroup.cpp.

void WeaponGroup::SetName ( const char *  n)

Definition at line 37 of file WeaponGroup.cpp.

void WeaponGroup::SetSweep ( int  s)

Definition at line 308 of file WeaponGroup.cpp.

void WeaponGroup::SetTarget ( SimObject t,
System sub = 0 
)

Definition at line 212 of file WeaponGroup.cpp.

void WeaponGroup::SetTrigger ( bool  t = true)
inline

Definition at line 62 of file WeaponGroup.h.

int WeaponGroup::Status ( ) const

Definition at line 263 of file WeaponGroup.cpp.

static const char* WeaponGroup::TYPENAME ( )
inlinestatic

Definition at line 27 of file WeaponGroup.h.

int WeaponGroup::Value ( ) const

Definition at line 338 of file WeaponGroup.cpp.


Member Data Documentation

Text WeaponGroup::abrv
protected

Definition at line 89 of file WeaponGroup.h.

int WeaponGroup::ammo
protected

Definition at line 95 of file WeaponGroup.h.

int WeaponGroup::control
protected

Definition at line 98 of file WeaponGroup.h.

float WeaponGroup::mass
protected

Definition at line 101 of file WeaponGroup.h.

Text WeaponGroup::name
protected

Definition at line 88 of file WeaponGroup.h.

int WeaponGroup::orders
protected

Definition at line 97 of file WeaponGroup.h.

float WeaponGroup::resist
protected

Definition at line 102 of file WeaponGroup.h.

int WeaponGroup::selected
protected

Definition at line 93 of file WeaponGroup.h.

int WeaponGroup::sweep
protected

Definition at line 99 of file WeaponGroup.h.

bool WeaponGroup::trigger
protected

Definition at line 94 of file WeaponGroup.h.

List<Weapon> WeaponGroup::weapons
protected

Definition at line 91 of file WeaponGroup.h.


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