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

#include <HardPoint.h>

List of all members.

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 WeaponCreateWeapon (int type_index=0)
virtual double GetCarryMass (int type_index=0)
WeaponDesignGetWeaponDesign (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
WeaponDesigndesigns [MAX_DESIGNS]
Vec3 muzzle
float aim_azimuth
float aim_elevation
Point mount_rel
float radius
float hull_factor

Detailed Description

Definition at line 29 of file HardPoint.h.


Member Enumeration Documentation

Enumerator:
MAX_DESIGNS 

Definition at line 34 of file HardPoint.h.


Constructor & Destructor Documentation

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.

HardPoint::~HardPoint ( )
virtual

Definition at line 42 of file HardPoint.cpp.


Member Function Documentation

void HardPoint::AddDesign ( WeaponDesign dsn)
virtual

Definition at line 59 of file HardPoint.cpp.

Weapon * HardPoint::CreateWeapon ( int  type_index = 0)
virtual

Definition at line 72 of file HardPoint.cpp.

virtual const char* HardPoint::GetAbbreviation ( ) const
inlinevirtual

Definition at line 54 of file HardPoint.h.

virtual double HardPoint::GetAzimuth ( ) const
inlinevirtual

Definition at line 59 of file HardPoint.h.

double HardPoint::GetCarryMass ( int  type_index = 0)
virtual

Definition at line 97 of file HardPoint.cpp.

virtual const char* HardPoint::GetDesign ( ) const
inlinevirtual

Definition at line 56 of file HardPoint.h.

virtual double HardPoint::GetElevation ( ) const
inlinevirtual

Definition at line 61 of file HardPoint.h.

virtual const char* HardPoint::GetName ( ) const
inlinevirtual

Definition at line 52 of file HardPoint.h.

WeaponDesign* HardPoint::GetWeaponDesign ( int  n)
inline

Definition at line 45 of file HardPoint.h.

double HardPoint::HullProtection ( ) const
inline

Definition at line 50 of file HardPoint.h.

void HardPoint::Mount ( Point  loc,
float  rad,
float  hull = 0.5f 
)
virtual

Definition at line 49 of file HardPoint.cpp.

Point HardPoint::MountLocation ( ) const
inline

Definition at line 48 of file HardPoint.h.

int HardPoint::operator== ( const HardPoint w) const
inline

Definition at line 40 of file HardPoint.h.

double HardPoint::Radius ( ) const
inline

Definition at line 49 of file HardPoint.h.

virtual void HardPoint::SetAbbreviation ( const char *  s)
inlinevirtual

Definition at line 55 of file HardPoint.h.

virtual void HardPoint::SetAzimuth ( double  a)
inlinevirtual

Definition at line 60 of file HardPoint.h.

virtual void HardPoint::SetDesign ( const char *  s)
inlinevirtual

Definition at line 57 of file HardPoint.h.

virtual void HardPoint::SetElevation ( double  e)
inlinevirtual

Definition at line 62 of file HardPoint.h.

virtual void HardPoint::SetName ( const char *  s)
inlinevirtual

Definition at line 53 of file HardPoint.h.

static const char* HardPoint::TYPENAME ( )
inlinestatic

Definition at line 32 of file HardPoint.h.


Member Data Documentation

Text HardPoint::abrv
protected

Definition at line 67 of file HardPoint.h.

float HardPoint::aim_azimuth
protected

Definition at line 72 of file HardPoint.h.

float HardPoint::aim_elevation
protected

Definition at line 73 of file HardPoint.h.

WeaponDesign* HardPoint::designs[MAX_DESIGNS]
protected

Definition at line 70 of file HardPoint.h.

float HardPoint::hull_factor
protected

Definition at line 78 of file HardPoint.h.

Point HardPoint::mount_rel
protected

Definition at line 76 of file HardPoint.h.

Vec3 HardPoint::muzzle
protected

Definition at line 71 of file HardPoint.h.

Text HardPoint::name
protected

Definition at line 66 of file HardPoint.h.

float HardPoint::radius
protected

Definition at line 77 of file HardPoint.h.

Text HardPoint::sys_dsn
protected

Definition at line 68 of file HardPoint.h.


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