RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields | Private Attributes
RoR::Turbojet Class Reference

#include <TurboJet.h>

+ Inheritance diagram for RoR::Turbojet:
+ Collaboration diagram for RoR::Turbojet:

Public Member Functions

 Turbojet (ActorPtr actor, NodeNum_t tnodefront, NodeNum_t tnodeback, NodeNum_t tnoderef, RigDef::Turbojet &def)
 
 ~Turbojet ()
 
void flipStart ()
 
void reset ()
 
void setRPM (float _rpm)
 
void setThrottle (float val)
 
void toggleReverse ()
 
void setReverse (bool val)
 
bool getReverse ()
 
void updateForces (float dt, int doUpdate)
 
Ogre::Vector3 getAxis ()
 
bool getIgnition ()
 
void setIgnition (bool val)
 
bool getWarmup ()
 
bool isFailed ()
 
float getAfterburner ()
 
float getAfterburnThrust () const
 
float getExhaustVelocity () const
 
float getRPM ()
 
float getRPMpc ()
 
float getRadius ()
 
float getThrottle ()
 
float getpropwash ()
 
int getNoderef ()
 
AeroEngineType getType ()
 
void updateVisuals (RoR::GfxActor *gfx_actor) override
 
void setVisible (bool visible) override
 
- Public Member Functions inherited from RoR::AeroEngine
virtual ~AeroEngine ()
 

Data Fields

bool tjet_afterburnable
 
TurbojetVisual tjet_visual
 

Private Attributes

Ogre::Vector3 m_axis
 
bool m_afterburner_active
 
bool m_is_failed
 
bool m_ignition
 
bool m_reversable
 
bool m_reverse
 
bool m_warmup
 
float m_afterburn_thrust
 in kN More...
 
float m_area
 
float m_exhaust_velocity
 in m/s More...
 
float m_last_flip
 
float m_max_dry_thrust
 in kN More...
 
float m_propwash
 
float m_radius
 
float m_reflen
 
float m_rpm_percent
 in percent! More...
 
float m_throtle
 
float m_timer
 
float m_warmup_start
 
float m_warmup_time
 
int m_sound_ab
 
int m_sound_mod
 
int m_sound_src
 
int m_sound_thr
 
ActorPtr m_actor
 
NodeNum_t m_node_back
 
NodeNum_t m_node_front
 
NodeNum_t m_node_ref
 

Detailed Description

Definition at line 62 of file TurboJet.h.

Constructor & Destructor Documentation

◆ Turbojet()

Turbojet::Turbojet ( ActorPtr  actor,
NodeNum_t  tnodefront,
NodeNum_t  tnodeback,
NodeNum_t  tnoderef,
RigDef::Turbojet def 
)

Definition at line 36 of file TurboJet.cpp.

◆ ~Turbojet()

Turbojet::~Turbojet ( )

Definition at line 114 of file TurboJet.cpp.

Member Function Documentation

◆ flipStart()

void Turbojet::flipStart ( )
virtual

Implements RoR::AeroEngine.

Definition at line 330 of file TurboJet.cpp.

◆ getAfterburner()

float RoR::Turbojet::getAfterburner ( )
inline

Definition at line 85 of file TurboJet.h.

+ Here is the caller graph for this function:

◆ getAfterburnThrust()

float RoR::Turbojet::getAfterburnThrust ( ) const
inline

Definition at line 86 of file TurboJet.h.

+ Here is the caller graph for this function:

◆ getAxis()

Ogre::Vector3 RoR::Turbojet::getAxis ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 79 of file TurboJet.h.

◆ getExhaustVelocity()

float RoR::Turbojet::getExhaustVelocity ( ) const
inline

Definition at line 87 of file TurboJet.h.

+ Here is the caller graph for this function:

◆ getIgnition()

bool RoR::Turbojet::getIgnition ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 81 of file TurboJet.h.

◆ getNoderef()

int RoR::Turbojet::getNoderef ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 93 of file TurboJet.h.

◆ getpropwash()

float RoR::Turbojet::getpropwash ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 92 of file TurboJet.h.

◆ getRadius()

float RoR::Turbojet::getRadius ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 90 of file TurboJet.h.

◆ getReverse()

bool RoR::Turbojet::getReverse ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 76 of file TurboJet.h.

◆ getRPM()

float RoR::Turbojet::getRPM ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 88 of file TurboJet.h.

◆ getRPMpc()

float RoR::Turbojet::getRPMpc ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 89 of file TurboJet.h.

◆ getThrottle()

float Turbojet::getThrottle ( )
virtual

Implements RoR::AeroEngine.

Definition at line 297 of file TurboJet.cpp.

◆ getType()

AeroEngineType RoR::Turbojet::getType ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 94 of file TurboJet.h.

◆ getWarmup()

bool RoR::Turbojet::getWarmup ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 83 of file TurboJet.h.

◆ isFailed()

bool RoR::Turbojet::isFailed ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 84 of file TurboJet.h.

◆ reset()

void Turbojet::reset ( )
virtual

Implements RoR::AeroEngine.

Definition at line 307 of file TurboJet.cpp.

◆ setIgnition()

void RoR::Turbojet::setIgnition ( bool  val)
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 82 of file TurboJet.h.

◆ setReverse()

void Turbojet::setReverse ( bool  val)
virtual

Implements RoR::AeroEngine.

Definition at line 325 of file TurboJet.cpp.

◆ setRPM()

void Turbojet::setRPM ( float  _rpm)
virtual

Implements RoR::AeroEngine.

Definition at line 302 of file TurboJet.cpp.

◆ setThrottle()

void Turbojet::setThrottle ( float  val)
virtual

Implements RoR::AeroEngine.

Definition at line 285 of file TurboJet.cpp.

◆ setVisible()

void Turbojet::setVisible ( bool  visible)
overridevirtual

Implements RoR::AeroEngine.

Definition at line 148 of file TurboJet.cpp.

◆ toggleReverse()

void Turbojet::toggleReverse ( )
virtual

Implements RoR::AeroEngine.

Definition at line 317 of file TurboJet.cpp.

◆ updateForces()

void Turbojet::updateForces ( float  dt,
int  doUpdate 
)
virtual

Implements RoR::AeroEngine.

Definition at line 226 of file TurboJet.cpp.

◆ updateVisuals()

void Turbojet::updateVisuals ( RoR::GfxActor gfx_actor)
overridevirtual

Implements RoR::AeroEngine.

Definition at line 142 of file TurboJet.cpp.

Field Documentation

◆ m_actor

ActorPtr RoR::Turbojet::m_actor
private

Definition at line 131 of file TurboJet.h.

◆ m_afterburn_thrust

float RoR::Turbojet::m_afterburn_thrust
private

in kN

Definition at line 112 of file TurboJet.h.

◆ m_afterburner_active

bool RoR::Turbojet::m_afterburner_active
private

Definition at line 106 of file TurboJet.h.

◆ m_area

float RoR::Turbojet::m_area
private

Definition at line 113 of file TurboJet.h.

◆ m_axis

Ogre::Vector3 RoR::Turbojet::m_axis
private

Definition at line 105 of file TurboJet.h.

◆ m_exhaust_velocity

float RoR::Turbojet::m_exhaust_velocity
private

in m/s

Definition at line 114 of file TurboJet.h.

◆ m_ignition

bool RoR::Turbojet::m_ignition
private

Definition at line 108 of file TurboJet.h.

◆ m_is_failed

bool RoR::Turbojet::m_is_failed
private

Definition at line 107 of file TurboJet.h.

◆ m_last_flip

float RoR::Turbojet::m_last_flip
private

Definition at line 115 of file TurboJet.h.

◆ m_max_dry_thrust

float RoR::Turbojet::m_max_dry_thrust
private

in kN

Definition at line 116 of file TurboJet.h.

◆ m_node_back

NodeNum_t RoR::Turbojet::m_node_back
private

Definition at line 132 of file TurboJet.h.

◆ m_node_front

NodeNum_t RoR::Turbojet::m_node_front
private

Definition at line 133 of file TurboJet.h.

◆ m_node_ref

NodeNum_t RoR::Turbojet::m_node_ref
private

Definition at line 134 of file TurboJet.h.

◆ m_propwash

float RoR::Turbojet::m_propwash
private

Definition at line 117 of file TurboJet.h.

◆ m_radius

float RoR::Turbojet::m_radius
private

Definition at line 118 of file TurboJet.h.

◆ m_reflen

float RoR::Turbojet::m_reflen
private

Definition at line 119 of file TurboJet.h.

◆ m_reversable

bool RoR::Turbojet::m_reversable
private

Definition at line 109 of file TurboJet.h.

◆ m_reverse

bool RoR::Turbojet::m_reverse
private

Definition at line 110 of file TurboJet.h.

◆ m_rpm_percent

float RoR::Turbojet::m_rpm_percent
private

in percent!

Definition at line 120 of file TurboJet.h.

◆ m_sound_ab

int RoR::Turbojet::m_sound_ab
private

Definition at line 125 of file TurboJet.h.

◆ m_sound_mod

int RoR::Turbojet::m_sound_mod
private

Definition at line 126 of file TurboJet.h.

◆ m_sound_src

int RoR::Turbojet::m_sound_src
private

Definition at line 127 of file TurboJet.h.

◆ m_sound_thr

int RoR::Turbojet::m_sound_thr
private

Definition at line 128 of file TurboJet.h.

◆ m_throtle

float RoR::Turbojet::m_throtle
private

Definition at line 121 of file TurboJet.h.

◆ m_timer

float RoR::Turbojet::m_timer
private

Definition at line 122 of file TurboJet.h.

◆ m_warmup

bool RoR::Turbojet::m_warmup
private

Definition at line 111 of file TurboJet.h.

◆ m_warmup_start

float RoR::Turbojet::m_warmup_start
private

Definition at line 123 of file TurboJet.h.

◆ m_warmup_time

float RoR::Turbojet::m_warmup_time
private

Definition at line 124 of file TurboJet.h.

◆ tjet_afterburnable

bool RoR::Turbojet::tjet_afterburnable

Definition at line 101 of file TurboJet.h.

◆ tjet_visual

TurbojetVisual RoR::Turbojet::tjet_visual

Definition at line 102 of file TurboJet.h.


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