Starshatter_Open
Open source Starshatter engine
|
#include <HardPoint.h>
Public Types | |
enum | CONSTANTS { MAX_DESIGNS = 8 } |
Public Member Functions | |
HardPoint (Vec3 muzzle, double az=0, double el=0) | |
HardPoint (const HardPoint &rhs) | |
virtual | ~HardPoint () |
int | operator== (const HardPoint &w) const |
virtual void | AddDesign (WeaponDesign *dsn) |
virtual Weapon * | CreateWeapon (int type_index=0) |
virtual double | GetCarryMass (int type_index=0) |
WeaponDesign * | GetWeaponDesign (int n) |
virtual void | Mount (Point loc, float rad, float hull=0.5f) |
Point | MountLocation () const |
double | Radius () const |
double | HullProtection () const |
virtual const char * | GetName () const |
virtual void | SetName (const char *s) |
virtual const char * | GetAbbreviation () const |
virtual void | SetAbbreviation (const char *s) |
virtual const char * | GetDesign () const |
virtual void | SetDesign (const char *s) |
virtual double | GetAzimuth () const |
virtual void | SetAzimuth (double a) |
virtual double | GetElevation () const |
virtual void | SetElevation (double e) |
Static Public Member Functions | |
static const char * | TYPENAME () |
Protected Attributes | |
Text | name |
Text | abrv |
Text | sys_dsn |
WeaponDesign * | designs [MAX_DESIGNS] |
Vec3 | muzzle |
float | aim_azimuth |
float | aim_elevation |
Point | mount_rel |
float | radius |
float | hull_factor |
Definition at line 29 of file HardPoint.h.
enum HardPoint::CONSTANTS |
Definition at line 34 of file HardPoint.h.
HardPoint::HardPoint | ( | Vec3 | muzzle, |
double | az = 0 , |
||
double | el = 0 |
||
) |
Definition at line 25 of file HardPoint.cpp.
HardPoint::HardPoint | ( | const HardPoint & | rhs | ) |
Definition at line 33 of file HardPoint.cpp.
|
virtual |
Definition at line 42 of file HardPoint.cpp.
|
virtual |
Definition at line 59 of file HardPoint.cpp.
|
virtual |
Definition at line 72 of file HardPoint.cpp.
|
inlinevirtual |
Definition at line 54 of file HardPoint.h.
|
inlinevirtual |
Definition at line 59 of file HardPoint.h.
|
virtual |
Definition at line 97 of file HardPoint.cpp.
|
inlinevirtual |
Definition at line 56 of file HardPoint.h.
|
inlinevirtual |
Definition at line 61 of file HardPoint.h.
|
inlinevirtual |
Definition at line 52 of file HardPoint.h.
|
inline |
Definition at line 45 of file HardPoint.h.
|
inline |
Definition at line 50 of file HardPoint.h.
|
virtual |
Definition at line 49 of file HardPoint.cpp.
|
inline |
Definition at line 48 of file HardPoint.h.
|
inline |
Definition at line 40 of file HardPoint.h.
|
inline |
Definition at line 49 of file HardPoint.h.
|
inlinevirtual |
Definition at line 55 of file HardPoint.h.
|
inlinevirtual |
Definition at line 60 of file HardPoint.h.
|
inlinevirtual |
Definition at line 57 of file HardPoint.h.
|
inlinevirtual |
Definition at line 62 of file HardPoint.h.
|
inlinevirtual |
Definition at line 53 of file HardPoint.h.
|
inlinestatic |
Definition at line 32 of file HardPoint.h.
|
protected |
Definition at line 67 of file HardPoint.h.
|
protected |
Definition at line 72 of file HardPoint.h.
|
protected |
Definition at line 73 of file HardPoint.h.
|
protected |
Definition at line 70 of file HardPoint.h.
|
protected |
Definition at line 78 of file HardPoint.h.
|
protected |
Definition at line 76 of file HardPoint.h.
|
protected |
Definition at line 71 of file HardPoint.h.
|
protected |
Definition at line 66 of file HardPoint.h.
|
protected |
Definition at line 77 of file HardPoint.h.
|
protected |
Definition at line 68 of file HardPoint.h.