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

#include <TurboProp.h>

+ Inheritance diagram for RoR::Turboprop:
+ Collaboration diagram for RoR::Turboprop:

Public Member Functions

 Turboprop (ActorPtr a, const char *propname, NodeNum_t nr, NodeNum_t nb, NodeNum_t np1, NodeNum_t np2, NodeNum_t np3, NodeNum_t np4, NodeNum_t tqn, float power, Ogre::String const &propfoilname, bool disable_smoke, bool ispiston, float fpitch)
 
 ~Turboprop ()
 
void updateForces (float dt, int doUpdate)
 
void setThrottle (float val)
 
float getThrottle ()
 
void reset ()
 
void toggleReverse ()
 
void setReverse (bool val)
 
bool getReverse ()
 
void flipStart ()
 
float getRPM ()
 
float getRPMpc ()
 
void setRPM (float _rpm)
 
float getpropwash ()
 
Ogre::Vector3 getAxis ()
 
bool isFailed ()
 
AeroEngineType getType ()
 
bool getIgnition ()
 
void setIgnition (bool val)
 
int getNoderef ()
 
bool getWarmup ()
 
float getRadius ()
 
void updateVisuals (RoR::GfxActor *gfx_actor) override
 
void setVisible (bool visible) override
 
- Public Member Functions inherited from RoR::AeroEngine
virtual ~AeroEngine ()
 

Data Fields

bool is_piston
 
float pitch
 
float indicated_torque
 
float max_torque
 

Private Attributes

float torquedist
 
Airfoilairfoil
 
float fullpower
 in kW More...
 
float proparea
 
float airdensity
 
float timer
 
float lastflip
 
float warmupstart
 
float warmuptime
 
int numblades
 
float bladewidth
 
float pitchspeed
 
float maxrevpitch
 
float regspeed
 
Ogre::ParticleSystem * smokePS
 
Ogre::SceneNode * smokeNode
 
float twistmap [5]
 
double rotenergy
 
float fixed_pitch
 
bool reverse
 
bool warmup
 
bool ignition
 
float radius
 
bool failed
 
bool failedold
 
float rpm
 
float throtle
 
char debug [256]
 
float propwash
 
Ogre::Vector3 axis
 
int mod_id
 
int src_id
 
int thr_id
 
ActorPtr m_actor
 
NodeNum_t nodeback
 
NodeNum_t noderef
 
NodeNum_t nodep [4]
 
NodeNum_t torquenode
 

Detailed Description

Definition at line 38 of file TurboProp.h.

Constructor & Destructor Documentation

◆ Turboprop()

Turboprop::Turboprop ( ActorPtr  a,
const char *  propname,
NodeNum_t  nr,
NodeNum_t  nb,
NodeNum_t  np1,
NodeNum_t  np2,
NodeNum_t  np3,
NodeNum_t  np4,
NodeNum_t  tqn,
float  power,
Ogre::String const &  propfoilname,
bool  disable_smoke,
bool  ispiston,
float  fpitch 
)

Definition at line 37 of file TurboProp.cpp.

+ Here is the call graph for this function:

◆ ~Turboprop()

Turboprop::~Turboprop ( )

Definition at line 152 of file TurboProp.cpp.

Member Function Documentation

◆ flipStart()

void Turboprop::flipStart ( )
virtual

Implements RoR::AeroEngine.

Definition at line 481 of file TurboProp.cpp.

◆ getAxis()

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

Implements RoR::AeroEngine.

Definition at line 83 of file TurboProp.h.

◆ getIgnition()

bool RoR::Turboprop::getIgnition ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 86 of file TurboProp.h.

◆ getNoderef()

int RoR::Turboprop::getNoderef ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 88 of file TurboProp.h.

◆ getpropwash()

float RoR::Turboprop::getpropwash ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 82 of file TurboProp.h.

◆ getRadius()

float RoR::Turboprop::getRadius ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 90 of file TurboProp.h.

◆ getReverse()

bool RoR::Turboprop::getReverse ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 75 of file TurboProp.h.

◆ getRPM()

float RoR::Turboprop::getRPM ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 79 of file TurboProp.h.

◆ getRPMpc()

float RoR::Turboprop::getRPMpc ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 80 of file TurboProp.h.

◆ getThrottle()

float Turboprop::getThrottle ( )
virtual

Implements RoR::AeroEngine.

Definition at line 448 of file TurboProp.cpp.

◆ getType()

AeroEngineType RoR::Turboprop::getType ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 85 of file TurboProp.h.

◆ getWarmup()

bool RoR::Turboprop::getWarmup ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 89 of file TurboProp.h.

◆ isFailed()

bool RoR::Turboprop::isFailed ( )
inlinevirtual

Implements RoR::AeroEngine.

Definition at line 84 of file TurboProp.h.

◆ reset()

void Turboprop::reset ( )
virtual

Implements RoR::AeroEngine.

Definition at line 458 of file TurboProp.cpp.

+ Here is the caller graph for this function:

◆ setIgnition()

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

Implements RoR::AeroEngine.

Definition at line 87 of file TurboProp.h.

◆ setReverse()

void Turboprop::setReverse ( bool  val)
virtual

Implements RoR::AeroEngine.

Definition at line 476 of file TurboProp.cpp.

◆ setRPM()

void Turboprop::setRPM ( float  _rpm)
virtual

Implements RoR::AeroEngine.

Definition at line 453 of file TurboProp.cpp.

◆ setThrottle()

void Turboprop::setThrottle ( float  val)
virtual

Implements RoR::AeroEngine.

Definition at line 438 of file TurboProp.cpp.

◆ setVisible()

void Turboprop::setVisible ( bool  visible)
overridevirtual

Implements RoR::AeroEngine.

Definition at line 215 of file TurboProp.cpp.

◆ toggleReverse()

void Turboprop::toggleReverse ( )
virtual

Implements RoR::AeroEngine.

Definition at line 469 of file TurboProp.cpp.

◆ updateForces()

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

Implements RoR::AeroEngine.

Definition at line 221 of file TurboProp.cpp.

+ Here is the call graph for this function:

◆ updateVisuals()

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

Implements RoR::AeroEngine.

Definition at line 171 of file TurboProp.cpp.

+ Here is the call graph for this function:

Field Documentation

◆ airdensity

float RoR::Turboprop::airdensity
private

Definition at line 102 of file TurboProp.h.

◆ airfoil

Airfoil* RoR::Turboprop::airfoil
private

Definition at line 99 of file TurboProp.h.

◆ axis

Ogre::Vector3 RoR::Turboprop::axis
private

Definition at line 128 of file TurboProp.h.

◆ bladewidth

float RoR::Turboprop::bladewidth
private

Definition at line 108 of file TurboProp.h.

◆ debug

char RoR::Turboprop::debug[256]
private

Definition at line 126 of file TurboProp.h.

◆ failed

bool RoR::Turboprop::failed
private

Definition at line 122 of file TurboProp.h.

◆ failedold

bool RoR::Turboprop::failedold
private

Definition at line 123 of file TurboProp.h.

◆ fixed_pitch

float RoR::Turboprop::fixed_pitch
private

Definition at line 116 of file TurboProp.h.

◆ fullpower

float RoR::Turboprop::fullpower
private

in kW

Definition at line 100 of file TurboProp.h.

◆ ignition

bool RoR::Turboprop::ignition
private

Definition at line 120 of file TurboProp.h.

◆ indicated_torque

float RoR::Turboprop::indicated_torque

Definition at line 44 of file TurboProp.h.

◆ is_piston

bool RoR::Turboprop::is_piston

Definition at line 42 of file TurboProp.h.

◆ lastflip

float RoR::Turboprop::lastflip
private

Definition at line 104 of file TurboProp.h.

◆ m_actor

ActorPtr RoR::Turboprop::m_actor
private

Definition at line 134 of file TurboProp.h.

◆ max_torque

float RoR::Turboprop::max_torque

Definition at line 45 of file TurboProp.h.

◆ maxrevpitch

float RoR::Turboprop::maxrevpitch
private

Definition at line 110 of file TurboProp.h.

◆ mod_id

int RoR::Turboprop::mod_id
private

Definition at line 129 of file TurboProp.h.

◆ nodeback

NodeNum_t RoR::Turboprop::nodeback
private

Definition at line 135 of file TurboProp.h.

◆ nodep

NodeNum_t RoR::Turboprop::nodep[4]
private

Definition at line 137 of file TurboProp.h.

◆ noderef

NodeNum_t RoR::Turboprop::noderef
private

Definition at line 136 of file TurboProp.h.

◆ numblades

int RoR::Turboprop::numblades
private

Definition at line 107 of file TurboProp.h.

◆ pitch

float RoR::Turboprop::pitch

Definition at line 43 of file TurboProp.h.

◆ pitchspeed

float RoR::Turboprop::pitchspeed
private

Definition at line 109 of file TurboProp.h.

◆ proparea

float RoR::Turboprop::proparea
private

Definition at line 101 of file TurboProp.h.

◆ propwash

float RoR::Turboprop::propwash
private

Definition at line 127 of file TurboProp.h.

◆ radius

float RoR::Turboprop::radius
private

Definition at line 121 of file TurboProp.h.

◆ regspeed

float RoR::Turboprop::regspeed
private

Definition at line 111 of file TurboProp.h.

◆ reverse

bool RoR::Turboprop::reverse
private

Definition at line 118 of file TurboProp.h.

◆ rotenergy

double RoR::Turboprop::rotenergy
private

Definition at line 115 of file TurboProp.h.

◆ rpm

float RoR::Turboprop::rpm
private

Definition at line 124 of file TurboProp.h.

◆ smokeNode

Ogre::SceneNode* RoR::Turboprop::smokeNode
private

Definition at line 113 of file TurboProp.h.

◆ smokePS

Ogre::ParticleSystem* RoR::Turboprop::smokePS
private

Definition at line 112 of file TurboProp.h.

◆ src_id

int RoR::Turboprop::src_id
private

Definition at line 130 of file TurboProp.h.

◆ thr_id

int RoR::Turboprop::thr_id
private

Definition at line 131 of file TurboProp.h.

◆ throtle

float RoR::Turboprop::throtle
private

Definition at line 125 of file TurboProp.h.

◆ timer

float RoR::Turboprop::timer
private

Definition at line 103 of file TurboProp.h.

◆ torquedist

float RoR::Turboprop::torquedist
private

Definition at line 98 of file TurboProp.h.

◆ torquenode

NodeNum_t RoR::Turboprop::torquenode
private

Definition at line 138 of file TurboProp.h.

◆ twistmap

float RoR::Turboprop::twistmap[5]
private

Definition at line 114 of file TurboProp.h.

◆ warmup

bool RoR::Turboprop::warmup
private

Definition at line 119 of file TurboProp.h.

◆ warmupstart

float RoR::Turboprop::warmupstart
private

Definition at line 105 of file TurboProp.h.

◆ warmuptime

float RoR::Turboprop::warmuptime
private

Definition at line 106 of file TurboProp.h.


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