Rise
The Vieneo Province
Loading...
Searching...
No Matches
cockpit Class Reference

#include <cockpit.h>

Collaboration diagram for cockpit:
[legend]

Classes

struct  DisplayDraw

Public Member Functions

 cockpit (Viewscreen *ptr)
 ~cockpit ()
void Load (unsigned char newType) const
void RefreshExternalCameras () const
void CacheEngineSounds (bool useExteriorModel) const
bool UsesParentExternalCameras () const
void FrameMove (float fElapsedTime) const
void ResetProps (const char *reason) const
void FrameMovePropSounds (float elapsedTime) const
void Render (Rendering::RenderDevice *pd3dDevice, const LocalLightning::Frame &strike={}) const
void OnLostDevice () const
HRESULT OnResetDevice (Rendering::RenderDevice *pd3dDevice) const
void ResetHelp () const

Private Member Functions

RiseMath::Matrix ComputeSimulatorMotion (unsigned char ordinal, float fElapsedTime) const

Private Attributes

Viewscreen * viewscreen
Logger * logger
CockpitLightning::Apertures lightningWindows
std::vector< std::vector< DisplayDraw > > displayDraws
std::unique_ptr< SparkoProp::Controller > sparkoProp
PropAudio::State propAudio
unsigned char externalCameraVehicleType = 0
bool externalCameraUsesParent = false

Detailed Description

Definition at line 16 of file cockpit.h.

Constructor & Destructor Documentation

◆ cockpit()

cockpit::cockpit ( Viewscreen * ptr)

Definition at line 17 of file cockpit.cpp.

◆ ~cockpit()

cockpit::~cockpit ( )
default
Here is the call graph for this function:

Member Function Documentation

◆ CacheEngineSounds()

void cockpit::CacheEngineSounds ( bool useExteriorModel) const

Definition at line 189 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeSimulatorMotion()

RiseMath::Matrix cockpit::ComputeSimulatorMotion ( unsigned char ordinal,
float fElapsedTime ) const
private

Definition at line 4839 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FrameMove()

void cockpit::FrameMove ( float fElapsedTime) const

Definition at line 2202 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FrameMovePropSounds()

void cockpit::FrameMovePropSounds ( float elapsedTime) const

Definition at line 36 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Load()

void cockpit::Load ( unsigned char newType) const
Todo
seems a little low

http://www.aero.us.es/adesign/Slides/Extra/Stability/Design_Control_Surface/Chapter%2012.%20Desig%20of%20Control%20Surfaces%20(Aileron).pdf

Todo
we need to wire up the drag of the engines! f24?

http://www.aero.us.es/adesign/Slides/Extra/Stability/Design_Control_Surface/Chapter%2012.%20Desig%20of%20Control%20Surfaces%20(Aileron).pdf

http://www.aero.us.es/adesign/Slides/Extra/Stability/Design_Control_Surface/Chapter%2012.%20Desig%20of%20Control%20Surfaces%20(Aileron).pdf

Todo
not sure what to do here yet

Definition at line 216 of file cockpit.cpp.

Here is the caller graph for this function:

◆ OnLostDevice()

void cockpit::OnLostDevice ( ) const

Definition at line 3457 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnResetDevice()

HRESULT cockpit::OnResetDevice ( Rendering::RenderDevice * pd3dDevice) const

Definition at line 3545 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RefreshExternalCameras()

void cockpit::RefreshExternalCameras ( ) const

Definition at line 65 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Render()

void cockpit::Render ( Rendering::RenderDevice * pd3dDevice,
const LocalLightning::Frame & strike = {} ) const
Todo
to support seat trim color in C-2A later
Todo
so we want to have a minimum color of 0xFF101010
Todo
Todo
I don't think we are adjusting the texel coordinates for stage 2
Todo
we aren't tracking TTF
Todo
not tracking TTF

Definition at line 2586 of file cockpit.cpp.

Here is the caller graph for this function:

◆ ResetHelp()

void cockpit::ResetHelp ( ) const

Definition at line 4664 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetProps()

void cockpit::ResetProps ( const char * reason) const

Definition at line 25 of file cockpit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UsesParentExternalCameras()

bool cockpit::UsesParentExternalCameras ( ) const
inline

Definition at line 25 of file cockpit.h.

Here is the caller graph for this function:

Member Data Documentation

◆ displayDraws

std::vector<std::vector<DisplayDraw> > cockpit::displayDraws
mutableprivate

Definition at line 40 of file cockpit.h.

◆ externalCameraUsesParent

bool cockpit::externalCameraUsesParent = false
mutableprivate

Definition at line 48 of file cockpit.h.

◆ externalCameraVehicleType

unsigned char cockpit::externalCameraVehicleType = 0
mutableprivate

Definition at line 47 of file cockpit.h.

◆ lightningWindows

CockpitLightning::Apertures cockpit::lightningWindows
mutableprivate

Definition at line 38 of file cockpit.h.

◆ logger

Logger* cockpit::logger
private

Definition at line 37 of file cockpit.h.

◆ propAudio

PropAudio::State cockpit::propAudio
mutableprivate

Definition at line 42 of file cockpit.h.

◆ sparkoProp

std::unique_ptr<SparkoProp::Controller> cockpit::sparkoProp
mutableprivate

Definition at line 41 of file cockpit.h.

◆ viewscreen

Viewscreen* cockpit::viewscreen
private

Definition at line 36 of file cockpit.h.


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