Pioneer
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ShipType Struct Reference

#include <ShipType.h>

Collaboration diagram for ShipType:
Collaboration graph
[legend]

Public Types

enum  DualLaserOrientation { DUAL_LASERS_HORIZONTAL , DUAL_LASERS_VERTICAL }
 
enum  Tag {
  TAG_NONE , TAG_SHIP , TAG_STATIC_SHIP , TAG_MISSILE ,
  TAG_MAX
}
 
typedef std::string Id
 

Public Member Functions

 ShipType ()
 
 ShipType (const Id &id, const std::string &path)
 
float GetFuelUseRate () const
 

Static Public Member Functions

static void Init ()
 
static const ShipTypeGet (const char *name)
 

Public Attributes

Tag tag
 
Id id
 
std::string name
 
std::string shipClass
 
std::string manufacturer
 
std::string modelName
 
std::string cockpitName
 
float linThrust [THRUSTER_MAX]
 
float angThrust
 
float linAccelerationCap [THRUSTER_MAX]
 
std::map< std::string, int > slots
 
std::map< std::string, bool > roles
 
Color globalThrusterColor
 
bool isGlobalColorDefined
 
Color directionThrusterColor [THRUSTER_MAX]
 
bool isDirectionColorDefined [THRUSTER_MAX]
 
double thrusterUpgrades [4]
 
double atmosphericPressureLimit
 
int capacity
 
int hullMass
 
float effectiveExhaustVelocity
 
int fuelTankMass
 
double topCrossSection
 
double sideCrossSection
 
double frontCrossSection
 
double topDragCoeff
 
double sideDragCoeff
 
double frontDragCoeff
 
double shipLiftCoefficient
 
double atmoStability
 
double baseprice
 
int hyperdriveClass
 
int minCrew
 
int maxCrew
 

Static Public Attributes

static const std::string POLICE = "kanara"
 
static const std::string MISSILE_GUIDED = "missile_guided"
 
static const std::string MISSILE_NAVAL = "missile_naval"
 
static const std::string MISSILE_SMART = "missile_smart"
 
static const std::string MISSILE_UNGUIDED = "missile_unguided"
 
static std::map< Id, const ShipTypetypes
 
static std::vector< Idplayer_ships
 
static std::vector< Idstatic_ships
 
static std::vector< Idmissile_ships
 

Member Typedef Documentation

◆ Id

typedef std::string ShipType::Id

Member Enumeration Documentation

◆ DualLaserOrientation

Enumerator
DUAL_LASERS_HORIZONTAL 
DUAL_LASERS_VERTICAL 

◆ Tag

Enumerator
TAG_NONE 
TAG_SHIP 
TAG_STATIC_SHIP 
TAG_MISSILE 
TAG_MAX 

Constructor & Destructor Documentation

◆ ShipType() [1/2]

ShipType::ShipType ( )
inline

◆ ShipType() [2/2]

ShipType::ShipType ( const Id id,
const std::string &  path 
)
Here is the call graph for this function:

Member Function Documentation

◆ Get()

static const ShipType * ShipType::Get ( const char *  name)
inlinestatic

◆ GetFuelUseRate()

float ShipType::GetFuelUseRate ( ) const

◆ Init()

void ShipType::Init ( )
static
Here is the call graph for this function:

Member Data Documentation

◆ angThrust

float ShipType::angThrust

◆ atmosphericPressureLimit

double ShipType::atmosphericPressureLimit

◆ atmoStability

double ShipType::atmoStability

◆ baseprice

double ShipType::baseprice

◆ capacity

int ShipType::capacity

◆ cockpitName

std::string ShipType::cockpitName

◆ directionThrusterColor

Color ShipType::directionThrusterColor[THRUSTER_MAX]

◆ effectiveExhaustVelocity

float ShipType::effectiveExhaustVelocity

◆ frontCrossSection

double ShipType::frontCrossSection

◆ frontDragCoeff

double ShipType::frontDragCoeff

◆ fuelTankMass

int ShipType::fuelTankMass

◆ globalThrusterColor

Color ShipType::globalThrusterColor

◆ hullMass

int ShipType::hullMass

◆ hyperdriveClass

int ShipType::hyperdriveClass

◆ id

Id ShipType::id

◆ isDirectionColorDefined

bool ShipType::isDirectionColorDefined[THRUSTER_MAX]

◆ isGlobalColorDefined

bool ShipType::isGlobalColorDefined

◆ linAccelerationCap

float ShipType::linAccelerationCap[THRUSTER_MAX]

◆ linThrust

float ShipType::linThrust[THRUSTER_MAX]

◆ manufacturer

std::string ShipType::manufacturer

◆ maxCrew

int ShipType::maxCrew

◆ minCrew

int ShipType::minCrew

◆ MISSILE_GUIDED

const std::string ShipType::MISSILE_GUIDED = "missile_guided"
static

◆ MISSILE_NAVAL

const std::string ShipType::MISSILE_NAVAL = "missile_naval"
static

◆ missile_ships

std::vector< ShipType::Id > ShipType::missile_ships
static

◆ MISSILE_SMART

const std::string ShipType::MISSILE_SMART = "missile_smart"
static

◆ MISSILE_UNGUIDED

const std::string ShipType::MISSILE_UNGUIDED = "missile_unguided"
static

◆ modelName

std::string ShipType::modelName

◆ name

std::string ShipType::name

◆ player_ships

std::vector< ShipType::Id > ShipType::player_ships
static

◆ POLICE

const std::string ShipType::POLICE = "kanara"
static

◆ roles

std::map<std::string, bool> ShipType::roles

◆ shipClass

std::string ShipType::shipClass

◆ shipLiftCoefficient

double ShipType::shipLiftCoefficient

◆ sideCrossSection

double ShipType::sideCrossSection

◆ sideDragCoeff

double ShipType::sideDragCoeff

◆ slots

std::map<std::string, int> ShipType::slots

◆ static_ships

std::vector< ShipType::Id > ShipType::static_ships
static

◆ tag

Tag ShipType::tag

◆ thrusterUpgrades

double ShipType::thrusterUpgrades[4]

◆ topCrossSection

double ShipType::topCrossSection

◆ topDragCoeff

double ShipType::topDragCoeff

◆ types

std::map< ShipType::Id, const ShipType > ShipType::types
static

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