Starshatter_Open
Open source Starshatter engine
|
#include <WeaponGroup.h>
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 () |
Weapon * | GetWeapon (int n) const |
Weapon * | GetSelected () 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) |
SimObject * | GetTarget () const |
System * | GetSubTarget () 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 |
WeaponDesign * | GetDesign () 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< Weapon > | weapons |
int | selected |
bool | trigger |
int | ammo |
int | orders |
int | control |
int | sweep |
float | mass |
float | resist |
Definition at line 24 of file WeaponGroup.h.
WeaponGroup::WeaponGroup | ( | const char * | name | ) |
Definition at line 21 of file WeaponGroup.cpp.
WeaponGroup::~WeaponGroup | ( | ) |
Definition at line 29 of file WeaponGroup.cpp.
|
inline |
Definition at line 36 of file WeaponGroup.h.
void WeaponGroup::AddWeapon | ( | Weapon * | w | ) |
Definition at line 107 of file WeaponGroup.cpp.
|
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.
|
inline |
Definition at line 75 of file WeaponGroup.h.
WeaponDesign * WeaponGroup::GetDesign | ( | ) | const |
Definition at line 252 of file WeaponGroup.cpp.
|
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.
|
inline |
Definition at line 77 of file WeaponGroup.h.
SimObject * WeaponGroup::GetTarget | ( | ) | const |
Definition at line 220 of file WeaponGroup.cpp.
|
inline |
Definition at line 61 of file WeaponGroup.h.
Weapon * WeaponGroup::GetWeapon | ( | int | n | ) | const |
Definition at line 149 of file WeaponGroup.cpp.
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.
|
inline |
Definition at line 64 of file WeaponGroup.h.
|
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.
|
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.
Definition at line 212 of file WeaponGroup.cpp.
|
inline |
Definition at line 62 of file WeaponGroup.h.
int WeaponGroup::Status | ( | ) | const |
Definition at line 263 of file WeaponGroup.cpp.
|
inlinestatic |
Definition at line 27 of file WeaponGroup.h.
int WeaponGroup::Value | ( | ) | const |
Definition at line 338 of file WeaponGroup.cpp.
|
protected |
Definition at line 89 of file WeaponGroup.h.
|
protected |
Definition at line 95 of file WeaponGroup.h.
|
protected |
Definition at line 98 of file WeaponGroup.h.
|
protected |
Definition at line 101 of file WeaponGroup.h.
|
protected |
Definition at line 88 of file WeaponGroup.h.
|
protected |
Definition at line 97 of file WeaponGroup.h.
|
protected |
Definition at line 102 of file WeaponGroup.h.
|
protected |
Definition at line 93 of file WeaponGroup.h.
|
protected |
Definition at line 99 of file WeaponGroup.h.
|
protected |
Definition at line 94 of file WeaponGroup.h.
Definition at line 91 of file WeaponGroup.h.