RigsofRods  2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AircraftEngineClass.h
Go to the documentation of this file.
1 namespace Script2Game {
2 
16 {
17  // PLEASE maintain the same order as in 'bindings/AircraftEngineClassAngelscript.cpp' and 'physics/air/AeroEngine.h'
18 public:
23  void setThrottle(float throttle);
24 
28  float getThrottle();
29 
33  void toggleReverse();
34 
38  void setReverse(bool reverse);
39 
43  bool getReverse();
44 
48  void flipStart();
49 
53  float getRPMPercent();
54 
58  bool isFailed();
59 
64 
68  bool getIgnition();
69 
73  int getFrontNode();
74 
78  int getBackNode();
79 
83  bool getWarmup();
84 };
85 
88 
89 } //namespace Script2Game
Script2Game::AircraftEngineTypes
AircraftEngineTypes
Binding of RoR::AeroEngineType.
Definition: AircraftEngineTypes.h:19
Script2Game::AircraftEngineClass::flipStart
void flipStart()
Toggles the engine ignition.
Script2Game::AircraftEngineClass::getThrottle
float getThrottle()
Script2Game::AircraftEngineClass
Binding of RoR::AeroEngine.
Definition: AircraftEngineClass.h:15
Script2Game
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition: AircraftEngineClass.h:1
Script2Game::AircraftEngineClass::getWarmup
bool getWarmup()
Script2Game::AircraftEngineClass::getBackNode
int getBackNode()
Script2Game::AircraftEngineClass::getFrontNode
int getFrontNode()
Script2Game::AircraftEngineClass::getType
AircraftEngineTypes getType()
Gets the engine type.
Script2Game::AircraftEngineClass::getReverse
bool getReverse()
Script2Game::AircraftEngineClass::getIgnition
bool getIgnition()
Script2Game::AircraftEngineClass::getRPMPercent
float getRPMPercent()
Gets the current RPM value, as a percentage.
Script2Game::AircraftEngineClass::toggleReverse
void toggleReverse()
Toggles the thrust reversers.
Script2Game::AircraftEngineClass::setReverse
void setReverse(bool reverse)
Sets the thrust reverser status.
Script2Game::AircraftEngineClass::setThrottle
void setThrottle(float throttle)
Sets the throttle.
Script2Game::AircraftEngineClass::isFailed
bool isFailed()