Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Ship Class Reference

#include <Ship.h>

Inheritance diagram for Ship:
Inheritance graph
[legend]
Collaboration diagram for Ship:
Collaboration graph
[legend]

Classes

struct  HyperspacingOut
 

Public Types

enum  FlightState {
  FLYING , DOCKING , UNDOCKING , DOCKED ,
  LANDED , JUMPING , HYPERSPACE
}
 
enum  HyperjumpStatus {
  HYPERJUMP_OK , HYPERJUMP_CURRENT_SYSTEM , HYPERJUMP_NO_DRIVE , HYPERJUMP_INITIATED ,
  HYPERJUMP_DRIVE_ACTIVE , HYPERJUMP_OUT_OF_RANGE , HYPERJUMP_INSUFFICIENT_FUEL , HYPERJUMP_SAFETY_LOCKOUT
}
 
enum  ECMResult { ECM_NOT_INSTALLED , ECM_ACTIVATED , ECM_RECHARGING }
 
enum  AlertState { ALERT_NONE , ALERT_SHIP_NEARBY , ALERT_SHIP_FIRING , ALERT_MISSILE_DETECTED }
 
- Public Types inherited from DynamicBody
enum  AIError {
  AIERROR_NONE = 0 , AIERROR_GRAV_TOO_HIGH , AIERROR_REFUSED_PERM , AIERROR_PRESS_TOO_HIGH ,
  AIERROR_ORBIT_IMPOSSIBLE
}
 
- Public Types inherited from Body
enum  { FLAG_CAN_MOVE_FRAME = (1 << 0) , FLAG_LABEL_HIDDEN = (1 << 1) , FLAG_DRAW_LAST = (1 << 2) , FLAG_DRAW_EXCLUDE = (1 << 3) }
 

Public Member Functions

 OBJDEF (Ship, DynamicBody, SHIP)
 
 Ship ()=delete
 
 Ship (const Json &jsonObj, Space *space)
 
 Ship (const ShipType::Id &shipId)
 
virtual ~Ship ()
 
virtual void SetFrame (FrameId fId) override
 
void SetController (ShipController *c)
 
ShipControllerGetController () const
 
virtual void SetDockedWith (SpaceStation *, int port)
 
SpaceStationGetDockedWith () const
 
int GetDockingPort () const
 
bool IsDocked () const
 
bool IsLanded () const
 
virtual void SetLandedOn (Planet *p, float latitude, float longitude)
 
virtual void Render (Graphics::Renderer *r, const Camera *camera, const vector3d &viewCoords, const matrix4x4d &viewTransform) override
 
void ClearThrusterState ()
 
void UpdateLuaStats ()
 
void UpdateEquipStats ()
 
void UpdateFuelStats ()
 
void UpdateGunsStats ()
 
const shipstats_tGetStats () const
 
void Explode ()
 
virtual bool DoDamage (float kgDamage)
 
void SetGunState (int idx, int state)
 
void UpdateMass ()
 
virtual bool SetWheelState (bool down)
 
void Blastoff ()
 
bool Undock ()
 
virtual void TimeStepUpdate (const float timeStep) override
 
virtual void StaticUpdate (const float timeStep) override
 
void TimeAccelAdjust (const float timeStep)
 
bool IsDecelerating () const
 
virtual void NotifyRemoved (const Body *const removedBody) override
 
virtual bool OnCollision (Body *o, Uint32 flags, double relVel) override
 
virtual bool OnDamage (Body *attacker, float kgDamage, const CollisionContact &contactData) override
 
vector3d CalcAtmoTorque () const
 
FlightState GetFlightState () const
 
void SetFlightState (FlightState s)
 
float GetWheelState () const
 
int GetWheelTransition () const
 
bool SpawnCargo (CargoBody *c_body) const
 
LuaRef GetEquipSet () const
 
virtual bool IsInSpace () const override
 
void SetHyperspaceDest (const SystemPath &dest)
 
const SystemPathGetHyperspaceDest () const
 
double GetHyperspaceDuration () const
 
double GetECMRechargeRemain () const
 
Ship::HyperjumpStatus CheckHyperjumpCapability () const
 
virtual Ship::HyperjumpStatus InitiateHyperjumpTo (const SystemPath &dest, int warmup_time, double duration, const HyperdriveSoundsTable &sounds, LuaRef checks)
 
virtual void AbortHyperjump ()
 
float GetHyperspaceCountdown () const
 
bool IsHyperspaceActive () const
 
double GetHullTemperature () const
 
ECMResult UseECM ()
 
virtual MissileSpawnMissile (ShipType::Id missile_type, int power=-1)
 
AlertState GetAlertState ()
 
void AIClearInstructions ()
 
bool AIIsActive ()
 
void AIGetStatusText (char *str)
 
void AIKamikaze (Body *target)
 
void AIKill (Ship *target)
 
void AIDock (SpaceStation *target)
 
void AIFlyTo (Body *target)
 
void AIOrbit (Body *target, double alt)
 
void AIHoldPosition ()
 
void AIBodyDeleted (const Body *const body)
 
const AICommandGetAICommand () const
 
bool IsAIAttacking (const Ship *target) const
 
virtual void PostLoadFixup (Space *space) override
 
const ShipTypeGetShipType () const
 
virtual void SetShipType (const ShipType::Id &shipId)
 
const SceneGraph::ModelSkinGetSkin () const
 
void SetSkin (const SceneGraph::ModelSkin &skin)
 
void SetPattern (unsigned int num)
 
void SetLabel (const std::string &label) override
 
void SetShipName (const std::string &shipName)
 
float GetAtmosphericPressureLimit () const
 
float GetPercentShields () const
 
float GetPercentHull () const
 
void SetPercentHull (float)
 
void EnterSystem ()
 
HyperspaceCloudGetHyperspaceCloud () const
 
bool IsInvulnerable () const
 
void SetInvulnerable (bool b)
 
SensorsGetSensors () const
 
Uint8 GetRelations (Body *other) const
 
void SetRelations (Body *other, Uint8 percent)
 
double GetLandingPosOffset () const
 
PropulsionGetPropulsion ()
 
void ClearAngThrusterState ()
 
void ClearLinThrusterState ()
 
double GetAccelFwd ()
 
void SetAngThrusterState (const vector3d &levels)
 
double GetFuel () const
 
double GetAccel (Thruster thruster) const
 
void SetFuel (const double f)
 
void SetFuelReserve (const double f)
 
bool AIMatchVel (const vector3d &vel, const vector3d &powerLimit=vector3d(1.0))
 
double AIFaceDirection (const vector3d &dir, double av=0)
 
void SetThrusterState (int axis, double level)
 
void AIMatchAngVelObjSpace (const vector3d &desiredAngVel, const vector3d &powerLimit=vector3d(1.0), bool ignoreZeroValues=false)
 
- Public Member Functions inherited from DynamicBody
 OBJDEF (DynamicBody, ModelBody, DYNAMICBODY)
 
 DynamicBody ()
 
 DynamicBody (const Json &jsonObj, Space *space)
 
virtual ~DynamicBody ()
 
virtual vector3d GetVelocity () const override
 
virtual void SetVelocity (const vector3d &v) override
 
virtual void SetFrame (FrameId fId) override
 
vector3d GetAngVelocity () const override
 
void SetAngVelocity (const vector3d &v) override
 
virtual bool OnCollision (Body *o, Uint32 flags, double relVel) override
 
vector3d GetAngularMomentum () const
 
double GetAngularInertia () const
 
void SetMassDistributionFromModel ()
 
void SetMoving (bool isMoving)
 
bool IsMoving () const
 
virtual double GetMass () const override
 
virtual void TimeStepUpdate (const float timeStep) override
 
double CalcAtmosphericDrag (double velSqr, double area, double coeff) const
 
void CalcExternalForce ()
 
void SetMass (double)
 
void AddForce (const vector3d &)
 
void AddTorque (const vector3d &)
 
void SetForce (const vector3d &)
 
void SetTorque (const vector3d &)
 
vector3d GetLastForce () const
 
vector3d GetLastTorque () const
 
void AddRelForce (const vector3d &)
 
void AddRelTorque (const vector3d &)
 
vector3d GetExternalForce () const
 
vector3d GetAtmosForce () const
 
vector3d GetGravityForce () const
 
virtual void UpdateInterpTransform (double alpha) override
 
virtual void PostLoadFixup (Space *space) override
 
Orbit ComputeOrbit () const
 
AIError AIMessage (AIError msg=AIERROR_NONE)
 
void SetDecelerating (bool decel)
 
- Public Member Functions inherited from ModelBody
 OBJDEF (ModelBody, Body, MODELBODY)
 
 ModelBody ()
 
 ModelBody (const Json &jsonObj, Space *space)
 
virtual ~ModelBody ()
 
void SetPosition (const vector3d &p) override
 
void SetOrient (const matrix3x3d &r) override
 
virtual void SetFrame (FrameId fId) override
 
void SetColliding (bool colliding)
 
bool IsColliding () const
 
void SetStatic (bool isStatic)
 
bool IsStatic () const
 
const AabbGetAabb () const
 
SceneGraph::ModelGetModel () const
 
CollMeshGetCollMesh ()
 
GeomGetGeom () const
 
void SetModel (const char *modelName)
 
void RenderModel (Graphics::Renderer *r, const Camera *camera, const vector3d &viewCoords, const matrix4x4d &viewTransform, const bool setLighting=true)
 
virtual void TimeStepUpdate (const float timeStep) override
 
- Public Member Functions inherited from Body
virtual ObjectType GetType () const
 
virtual bool IsType (ObjectType c) const
 
 Body ()
 
 Body (const Json &jsonObj, Space *space)
 
virtual ~Body ()
 
void ToJson (Json &jsonObj, Space *space)
 
virtual void PostLoadFixup (Space *space)
 
virtual void SetPosition (const vector3d &p)
 
vector3d GetPosition () const
 
virtual void SetOrient (const matrix3x3d &r)
 
const matrix3x3dGetOrient () const
 
virtual void SetVelocity (const vector3d &v)
 
virtual vector3d GetVelocity () const
 
virtual void SetAngVelocity (const vector3d &v)
 
virtual vector3d GetAngVelocity () const
 
void SetPhysRadius (double r)
 
double GetPhysRadius () const
 
void SetClipRadius (double r)
 
double GetClipRadius () const
 
virtual double GetMass () const
 
virtual bool OnCollision (Body *o, Uint32 flags, double relVel)
 
virtual bool OnDamage (Body *attacker, float kgDamage, const CollisionContact &contactData)
 
virtual void NotifyRemoved (const Body *const removedBody)
 
virtual void StaticUpdate (const float timeStep)
 
virtual void TimeStepUpdate (const float timeStep)
 
virtual void Render (Graphics::Renderer *r, const Camera *camera, const vector3d &viewCoords, const matrix4x4d &viewTransform)=0
 
virtual void SetFrame (FrameId f)
 
FrameId GetFrame () const
 
void SwitchToFrame (FrameId newFrame)
 
void UpdateFrame ()
 
vector3d GetVelocityRelTo (const Body *) const
 
vector3d GetVelocityRelTo (FrameId) const
 
vector3d GetPositionRelTo (FrameId) const
 
vector3d GetPositionRelTo (const Body *) const
 
matrix3x3d GetOrientRelTo (FrameId) const
 
virtual const SystemBodyGetSystemBody () const
 
void OrientOnSurface (double radius, double latitude, double longitude)
 
virtual void SetLabel (const std::string &label)
 
const std::string & GetLabel () const
 
unsigned int GetFlags () const
 
void SetFlag (unsigned int flag, bool enable)
 
template<typename T >
bool HasComponent () const
 
template<typename T >
T * GetComponent () const
 
template<typename T >
T * AddComponent ()
 
uint64_t GetComponentList () const
 
void MarkDead ()
 
bool IsDead () const
 
virtual bool IsInSpace () const
 
const matrix3x3dGetInterpOrient () const
 
vector3d GetInterpPosition () const
 
vector3d GetInterpPositionRelTo (FrameId relToId) const
 
vector3d GetInterpPositionRelTo (const Body *relTo) const
 
matrix3x3d GetInterpOrientRelTo (FrameId relToId) const
 
virtual void UpdateInterpTransform (double alpha)
 
virtual vector3d GetTargetIndicatorPosition () const
 
- Public Member Functions inherited from DeleteEmitter
 DeleteEmitter ()
 
virtual ~DeleteEmitter ()
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 
- Public Member Functions inherited from PropertiedObject
PropertyMapProperties ()
 
const PropertyMapProperties () const
 

Public Attributes

sigc::signal< void > onDock
 
sigc::signal< void > onUndock
 
sigc::signal< void > onLanded
 
sigc::signal< void > onFlavourChanged
 
- Public Attributes inherited from DeleteEmitter
sigc::signal< void > onDelete
 

Protected Member Functions

vector3d CalcAtmosphericForce () const override
 
virtual void SaveToJson (Json &jsonObj, Space *space) override
 
bool AITimeStep (float timeStep)
 
virtual void SetAlertState (AlertState as)
 
virtual void OnEnterHyperspace ()
 
virtual void OnEnterSystem ()
 
- Protected Member Functions inherited from DynamicBody
virtual void SaveToJson (Json &jsonObj, Space *space) override
 
void GetCurrentAtmosphericState (double &pressure, double &density) const
 
virtual vector3d CalcAtmosphericForce () const
 
- Protected Member Functions inherited from ModelBody
virtual void SaveToJson (Json &jsonObj, Space *space) override
 
void SetLighting (Graphics::Renderer *r, const Camera *camera, std::vector< float > &oldIntensity, Color &oldAmbient)
 
void ResetLighting (Graphics::Renderer *r, const std::vector< float > &oldIntensity, const Color &oldAmbient)
 
ShieldsGetShields () const
 
virtual void SaveToJson (Json &jsonObj, Space *space)
 

Protected Attributes

SpaceStationm_dockedWith
 
int m_dockedWithPort
 
float m_ecmRecharge
 
ShipControllerm_controller
 
struct Ship::HyperspacingOut m_hyperspace
 
LuaRef m_equipSet
 
Propulsionm_propulsion
 
FixedGunsm_fixedGuns
 
- Protected Attributes inherited from DynamicBody
double m_dragCoeff
 
bool m_decelerating
 
AIError m_aiMessage
 
- Protected Attributes inherited from Body
unsigned int m_flags = 0
 
vector3d m_interpPos
 
matrix3x3d m_interpOrient
 

Friends

class ShipController
 
class PlayerShipController
 

Additional Inherited Members

- Static Public Member Functions inherited from Body
static constexpr ObjectType StaticType ()
 
static BodyFromJson (const Json &jsonObj, Space *space)
 
- Static Protected Attributes inherited from DynamicBody
static const double DEFAULT_DRAG_COEFF = 0.1
 

Member Enumeration Documentation

◆ AlertState

Enumerator
ALERT_NONE 
ALERT_SHIP_NEARBY 
ALERT_SHIP_FIRING 
ALERT_MISSILE_DETECTED 

◆ ECMResult

Enumerator
ECM_NOT_INSTALLED 
ECM_ACTIVATED 
ECM_RECHARGING 

◆ FlightState

Enumerator
FLYING 
DOCKING 
UNDOCKING 
DOCKED 
LANDED 
JUMPING 
HYPERSPACE 

◆ HyperjumpStatus

Enumerator
HYPERJUMP_OK 
HYPERJUMP_CURRENT_SYSTEM 
HYPERJUMP_NO_DRIVE 
HYPERJUMP_INITIATED 
HYPERJUMP_DRIVE_ACTIVE 
HYPERJUMP_OUT_OF_RANGE 
HYPERJUMP_INSUFFICIENT_FUEL 
HYPERJUMP_SAFETY_LOCKOUT 

Constructor & Destructor Documentation

◆ Ship() [1/3]

Ship::Ship ( )
delete

◆ Ship() [2/3]

Ship::Ship ( const Json jsonObj,
Space space 
)
Here is the call graph for this function:

◆ Ship() [3/3]

Ship::Ship ( const ShipType::Id shipId)
Here is the call graph for this function:

◆ ~Ship()

Ship::~Ship ( )
virtual

Member Function Documentation

◆ AbortHyperjump()

void Ship::AbortHyperjump ( )
virtual

Reimplemented in Player.

◆ AIBodyDeleted()

void Ship::AIBodyDeleted ( const Body *const  body)
inline

◆ AIClearInstructions()

void Ship::AIClearInstructions ( )

◆ AIDock()

void Ship::AIDock ( SpaceStation target)
Here is the call graph for this function:

◆ AIFaceDirection()

double Ship::AIFaceDirection ( const vector3d dir,
double  av = 0 
)
inline
Here is the call graph for this function:

◆ AIFlyTo()

void Ship::AIFlyTo ( Body target)
Here is the call graph for this function:

◆ AIGetStatusText()

void Ship::AIGetStatusText ( char *  str)
Here is the call graph for this function:

◆ AIHoldPosition()

void Ship::AIHoldPosition ( )
Here is the call graph for this function:

◆ AIIsActive()

bool Ship::AIIsActive ( )
inline

◆ AIKamikaze()

void Ship::AIKamikaze ( Body target)
Here is the call graph for this function:

◆ AIKill()

void Ship::AIKill ( Ship target)
Here is the call graph for this function:

◆ AIMatchAngVelObjSpace()

void Ship::AIMatchAngVelObjSpace ( const vector3d desiredAngVel,
const vector3d powerLimit = vector3d(1.0),
bool  ignoreZeroValues = false 
)
inline
Here is the call graph for this function:

◆ AIMatchVel()

bool Ship::AIMatchVel ( const vector3d vel,
const vector3d powerLimit = vector3d(1.0) 
)
inline
Here is the call graph for this function:

◆ AIOrbit()

void Ship::AIOrbit ( Body target,
double  alt 
)
Here is the call graph for this function:

◆ AITimeStep()

bool Ship::AITimeStep ( float  timeStep)
protected
Here is the call graph for this function:

◆ Blastoff()

void Ship::Blastoff ( )
Here is the call graph for this function:

◆ CalcAtmosphericForce()

vector3d Ship::CalcAtmosphericForce ( ) const
overrideprotectedvirtual

Reimplemented from DynamicBody.

Here is the call graph for this function:

◆ CalcAtmoTorque()

vector3d Ship::CalcAtmoTorque ( ) const
Here is the call graph for this function:

◆ CheckHyperjumpCapability()

Ship::HyperjumpStatus Ship::CheckHyperjumpCapability ( ) const
Here is the call graph for this function:

◆ ClearAngThrusterState()

void Ship::ClearAngThrusterState ( )
inline
Here is the call graph for this function:

◆ ClearLinThrusterState()

void Ship::ClearLinThrusterState ( )
inline
Here is the call graph for this function:

◆ ClearThrusterState()

void Ship::ClearThrusterState ( )
inline
Here is the call graph for this function:

◆ DoDamage()

bool Ship::DoDamage ( float  kgDamage)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ EnterSystem()

void Ship::EnterSystem ( )
Here is the call graph for this function:

◆ Explode()

void Ship::Explode ( )
Here is the call graph for this function:

◆ GetAccel()

double Ship::GetAccel ( Thruster  thruster) const
inline
Here is the call graph for this function:

◆ GetAccelFwd()

double Ship::GetAccelFwd ( )
inline
Here is the call graph for this function:

◆ GetAICommand()

const AICommand * Ship::GetAICommand ( ) const
inline

◆ GetAlertState()

AlertState Ship::GetAlertState ( )
inline

◆ GetAtmosphericPressureLimit()

float Ship::GetAtmosphericPressureLimit ( ) const

◆ GetController()

ShipController * Ship::GetController ( ) const
inline

◆ GetDockedWith()

SpaceStation * Ship::GetDockedWith ( ) const
inline

Use GetDockedWith() to determine if docked

◆ GetDockingPort()

int Ship::GetDockingPort ( ) const
inline

◆ GetECMRechargeRemain()

double Ship::GetECMRechargeRemain ( ) const
inline

◆ GetEquipSet()

LuaRef Ship::GetEquipSet ( ) const
inline

◆ GetFlightState()

FlightState Ship::GetFlightState ( ) const
inline

◆ GetFuel()

double Ship::GetFuel ( ) const
inline
Here is the call graph for this function:

◆ GetHullTemperature()

double Ship::GetHullTemperature ( ) const
Here is the call graph for this function:

◆ GetHyperspaceCloud()

HyperspaceCloud * Ship::GetHyperspaceCloud ( ) const
inline

◆ GetHyperspaceCountdown()

float Ship::GetHyperspaceCountdown ( ) const
inline

◆ GetHyperspaceDest()

const SystemPath & Ship::GetHyperspaceDest ( ) const
inline

◆ GetHyperspaceDuration()

double Ship::GetHyperspaceDuration ( ) const
inline

◆ GetLandingPosOffset()

double Ship::GetLandingPosOffset ( ) const
inline

◆ GetPercentHull()

float Ship::GetPercentHull ( ) const

◆ GetPercentShields()

float Ship::GetPercentShields ( ) const

◆ GetPropulsion()

Propulsion * Ship::GetPropulsion ( )
inline

◆ GetRelations()

Uint8 Ship::GetRelations ( Body other) const

◆ GetSensors()

Sensors * Ship::GetSensors ( ) const
inline

◆ GetShipType()

const ShipType * Ship::GetShipType ( ) const
inline

◆ GetSkin()

const SceneGraph::ModelSkin & Ship::GetSkin ( ) const
inline

◆ GetStats()

const shipstats_t & Ship::GetStats ( ) const
inline

◆ GetWheelState()

float Ship::GetWheelState ( ) const
inline

◆ GetWheelTransition()

int Ship::GetWheelTransition ( ) const
inline

◆ InitiateHyperjumpTo()

Ship::HyperjumpStatus Ship::InitiateHyperjumpTo ( const SystemPath dest,
int  warmup_time,
double  duration,
const HyperdriveSoundsTable sounds,
LuaRef  checks 
)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ IsAIAttacking()

bool Ship::IsAIAttacking ( const Ship target) const
Here is the call graph for this function:

◆ IsDecelerating()

bool Ship::IsDecelerating ( ) const
inline

◆ IsDocked()

bool Ship::IsDocked ( ) const
inline
Here is the call graph for this function:

◆ IsHyperspaceActive()

bool Ship::IsHyperspaceActive ( ) const
inline

◆ IsInSpace()

virtual bool Ship::IsInSpace ( ) const
inlineoverridevirtual

Reimplemented from Body.

◆ IsInvulnerable()

bool Ship::IsInvulnerable ( ) const
inline

◆ IsLanded()

bool Ship::IsLanded ( ) const
inline
Here is the call graph for this function:

◆ NotifyRemoved()

void Ship::NotifyRemoved ( const Body *const  removedBody)
overridevirtual

Reimplemented from Body.

Reimplemented in Player.

Here is the call graph for this function:

◆ OBJDEF()

Ship::OBJDEF ( Ship  ,
DynamicBody  ,
SHIP   
)

◆ OnCollision()

bool Ship::OnCollision ( Body o,
Uint32  flags,
double  relVel 
)
overridevirtual

Reimplemented from DynamicBody.

Here is the call graph for this function:

◆ OnDamage()

bool Ship::OnDamage ( Body attacker,
float  kgDamage,
const CollisionContact contactData 
)
overridevirtual

Reimplemented from Body.

Reimplemented in Player.

Here is the call graph for this function:

◆ OnEnterHyperspace()

void Ship::OnEnterHyperspace ( )
protectedvirtual

Reimplemented in Player.

Here is the call graph for this function:

◆ OnEnterSystem()

void Ship::OnEnterSystem ( )
protectedvirtual

Reimplemented in Player.

◆ PostLoadFixup()

void Ship::PostLoadFixup ( Space space)
overridevirtual

Reimplemented from DynamicBody.

Here is the call graph for this function:

◆ Render()

void Ship::Render ( Graphics::Renderer r,
const Camera camera,
const vector3d viewCoords,
const matrix4x4d viewTransform 
)
overridevirtual

Implements Body.

Here is the call graph for this function:

◆ SaveToJson()

void Ship::SaveToJson ( Json jsonObj,
Space space 
)
overrideprotectedvirtual

Reimplemented from DynamicBody.

Reimplemented in Player.

Here is the call graph for this function:

◆ SetAlertState()

void Ship::SetAlertState ( AlertState  as)
protectedvirtual

Reimplemented in Player.

Here is the call graph for this function:

◆ SetAngThrusterState()

void Ship::SetAngThrusterState ( const vector3d levels)
inline
Here is the call graph for this function:

◆ SetController()

void Ship::SetController ( ShipController c)

◆ SetDockedWith()

void Ship::SetDockedWith ( SpaceStation s,
int  port 
)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ SetFlightState()

void Ship::SetFlightState ( Ship::FlightState  newState)
Here is the call graph for this function:

◆ SetFrame()

void Ship::SetFrame ( FrameId  fId)
overridevirtual

Reimplemented from DynamicBody.

Here is the call graph for this function:

◆ SetFuel()

void Ship::SetFuel ( const double  f)
inline
Here is the call graph for this function:

◆ SetFuelReserve()

void Ship::SetFuelReserve ( const double  f)
inline
Here is the call graph for this function:

◆ SetGunState()

void Ship::SetGunState ( int  idx,
int  state 
)
Here is the call graph for this function:

◆ SetHyperspaceDest()

void Ship::SetHyperspaceDest ( const SystemPath dest)
inline

◆ SetInvulnerable()

void Ship::SetInvulnerable ( bool  b)
inline

◆ SetLabel()

void Ship::SetLabel ( const std::string &  label)
overridevirtual

Reimplemented from Body.

Here is the call graph for this function:

◆ SetLandedOn()

void Ship::SetLandedOn ( Planet p,
float  latitude,
float  longitude 
)
virtual
Here is the call graph for this function:

◆ SetPattern()

void Ship::SetPattern ( unsigned int  num)
Here is the call graph for this function:

◆ SetPercentHull()

void Ship::SetPercentHull ( float  p)
Here is the call graph for this function:

◆ SetRelations()

void Ship::SetRelations ( Body other,
Uint8  percent 
)

◆ SetShipName()

void Ship::SetShipName ( const std::string &  shipName)
Here is the call graph for this function:

◆ SetShipType()

void Ship::SetShipType ( const ShipType::Id shipId)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ SetSkin()

void Ship::SetSkin ( const SceneGraph::ModelSkin skin)
Here is the call graph for this function:

◆ SetThrusterState()

void Ship::SetThrusterState ( int  axis,
double  level 
)
inline
Here is the call graph for this function:

◆ SetWheelState()

bool Ship::SetWheelState ( bool  down)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ SpawnCargo()

bool Ship::SpawnCargo ( CargoBody c_body) const
Here is the call graph for this function:

◆ SpawnMissile()

Missile * Ship::SpawnMissile ( ShipType::Id  missile_type,
int  power = -1 
)
virtual

Reimplemented in Player.

Here is the call graph for this function:

◆ StaticUpdate()

void Ship::StaticUpdate ( const float  timeStep)
overridevirtual

Reimplemented from Body.

Reimplemented in Player.

Here is the call graph for this function:

◆ TimeAccelAdjust()

void Ship::TimeAccelAdjust ( const float  timeStep)
Here is the call graph for this function:

◆ TimeStepUpdate()

void Ship::TimeStepUpdate ( const float  timeStep)
overridevirtual

Reimplemented from DynamicBody.

Here is the call graph for this function:

◆ Undock()

bool Ship::Undock ( )
Here is the call graph for this function:

◆ UpdateEquipStats()

void Ship::UpdateEquipStats ( )
Here is the call graph for this function:

◆ UpdateFuelStats()

void Ship::UpdateFuelStats ( )
Here is the call graph for this function:

◆ UpdateGunsStats()

void Ship::UpdateGunsStats ( )
Here is the call graph for this function:

◆ UpdateLuaStats()

void Ship::UpdateLuaStats ( )
Here is the call graph for this function:

◆ UpdateMass()

void Ship::UpdateMass ( )
Here is the call graph for this function:

◆ UseECM()

Ship::ECMResult Ship::UseECM ( )
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ PlayerShipController

friend class PlayerShipController
friend

◆ ShipController

friend class ShipController
friend

Member Data Documentation

◆ m_controller

ShipController* Ship::m_controller
protected

◆ m_dockedWith

SpaceStation* Ship::m_dockedWith
protected

◆ m_dockedWithPort

int Ship::m_dockedWithPort
protected

◆ m_ecmRecharge

float Ship::m_ecmRecharge
protected

◆ m_equipSet

LuaRef Ship::m_equipSet
protected

◆ m_fixedGuns

FixedGuns* Ship::m_fixedGuns
protected

◆ m_hyperspace

struct Ship::HyperspacingOut Ship::m_hyperspace
protected

◆ m_propulsion

Propulsion* Ship::m_propulsion
protected

◆ onDock

sigc::signal<void> Ship::onDock

◆ onFlavourChanged

sigc::signal<void> Ship::onFlavourChanged
mutable

◆ onLanded

sigc::signal<void> Ship::onLanded

◆ onUndock

sigc::signal<void> Ship::onUndock

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