Rigs of Rods 2023.09
Soft-body Physics Simulation
Loading...
Searching...
No Matches
AeroEngine.h
Go to the documentation of this file.
1/*
2 This source file is part of Rigs of Rods
3 Copyright 2005-2012 Pierre-Michel Ricordel
4 Copyright 2007-2012 Thomas Fischer
5
6 For more information, see http://www.rigsofrods.org/
7
8 Rigs of Rods is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 3, as
10 published by the Free Software Foundation.
11
12 Rigs of Rods is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#include "Application.h"
24#include "RefCountingObject.h"
26#include "SimData.h"
27
28#include <Ogre.h>
29
30namespace RoR {
31
34
37
38class AeroEngine : public RefCountingObject<AeroEngine>
39{
40public:
41 virtual ~AeroEngine() override {};
42
43 virtual void updateForces(float dt, int doUpdate) =0;
44
45 virtual void setThrottle(float val) =0;
46
47 virtual float getThrottle() =0;
48
49 virtual void reset() =0;
50
51 virtual void toggleReverse() =0;
52
53 virtual void setReverse(bool val) =0;
54 virtual bool getReverse() =0;
55
56 virtual void flipStart() =0;
57
58 virtual float getRPMpc() =0;
59 virtual float getRPM() =0;
60 virtual void setRPM(float _rpm) =0;
61 virtual float getpropwash() =0;
62 virtual Ogre::Vector3 getAxis() =0;
63 virtual bool isFailed() =0;
64 virtual AeroEngineType getType() =0;
65 virtual bool getIgnition() =0;
66 virtual void setIgnition(bool val) =0;
67 virtual int getNoderef() =0;
68 virtual NodeNum_t GetFrontNode() const =0;
69 virtual NodeNum_t GetBackNode() const =0;
70 virtual bool getWarmup() =0;
71 virtual float getRadius() =0;
72
73 // Visuals
74 virtual void updateVisuals(RoR::GfxActor* gfx_actor) = 0;
75 virtual void setVisible(bool visible) = 0;
76};
77
80
81} // namespace RoR
Central state/object manager and communications hub.
Core data structures for simulation; Everything affected by by either physics, network or user intera...
Self reference-counting objects, as requred by AngelScript garbage collector.
virtual void setIgnition(bool val)=0
virtual bool getIgnition()=0
virtual void setVisible(bool visible)=0
virtual float getpropwash()=0
virtual Ogre::Vector3 getAxis()=0
virtual void toggleReverse()=0
virtual bool isFailed()=0
virtual float getRadius()=0
virtual float getRPMpc()=0
virtual void setThrottle(float val)=0
virtual bool getReverse()=0
virtual float getRPM()=0
virtual ~AeroEngine() override
Definition AeroEngine.h:41
virtual void flipStart()=0
virtual void setRPM(float _rpm)=0
virtual int getNoderef()=0
virtual void updateVisuals(RoR::GfxActor *gfx_actor)=0
virtual float getThrottle()=0
virtual bool getWarmup()=0
virtual AeroEngineType getType()=0
virtual NodeNum_t GetBackNode() const =0
virtual NodeNum_t GetFrontNode() const =0
virtual void updateForces(float dt, int doUpdate)=0
virtual void reset()=0
virtual void setReverse(bool val)=0
AeroEngineType
Definition SimData.h:249
uint16_t NodeNum_t
Node position within Actor::ar_nodes; use RoR::NODENUM_INVALID as empty value.