Avionics
Dropship Simulator
FlightModeAnnunciator Class Reference

FMA. More...

#include <Instrument.h>

Inheritance diagram for FlightModeAnnunciator:
[legend]
Collaboration diagram for FlightModeAnnunciator:
[legend]

Public Member Functions

 FlightModeAnnunciator (int prmX, int prmY, float prmXScale, float prmYScale)
 
void Initialize (Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
 
void Render (float fElapsed) override
 
- Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale)
 
void DrawText (const WCHAR *str, int x, int y, int flags, D3DXCOLOR color, int font, std::string elementName)
 
virtual ~Instrument ()
 

Private Attributes

Sprite pixel
 
Bus::Afcs::LateralModes oldActiveLateralMode = Bus::Afcs::LateralModes::LateralMode_Off
 
float lateralModeTimer = 3.0f
 
Bus::Afcs::VerticalModes oldActiveVerticalMode = Bus::Afcs::VerticalModes::VerticalMode_Off
 
float verticalModeTimer = 3.0f
 
bool oldAutopilotEngaged = false
 
float autopilotModeTimer = 3.0f
 
UINT font = 1
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
Busbus = nullptr
 
Loggerlogger = nullptr
 
int screenWidth = 0
 
int screenHeight = 0
 
DEVICE_OBJECTpDevice = nullptr
 
std::vector< Font > * fonts = nullptr
 
bool flip = false
 
int x
 
int y
 
int width = 0
 
int height = 0
 
float xScale
 
float yScale
 
int standardWidth = 0
 
int standardHeight = 0
 

Detailed Description

FMA.

Definition at line 162 of file Instrument.h.

Constructor & Destructor Documentation

◆ FlightModeAnnunciator()

FlightModeAnnunciator::FlightModeAnnunciator ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale 
)

Definition at line 3 of file FlightModeAnnunciator.cpp.

Member Function Documentation

◆ Initialize()

void FlightModeAnnunciator::Initialize ( Bus prmBus,
Logger prmLogger,
DEVICE_OBJECT prmDevice,
int  prmScreenWidth,
int  prmScreenHeight,
std::vector< Font > *  prmFonts,
bool  prmFlip 
)
overridevirtual

Reimplemented from Instrument.

Definition at line 7 of file FlightModeAnnunciator.cpp.

Here is the call graph for this function:

◆ Render()

void FlightModeAnnunciator::Render ( float  fElapsed)
overridevirtual

129 32 82 27

A/P

vsi

spd

alt

hdg

Implements Instrument.

Definition at line 16 of file FlightModeAnnunciator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ autopilotModeTimer

float FlightModeAnnunciator::autopilotModeTimer = 3.0f
private

Definition at line 171 of file Instrument.h.

◆ font

UINT FlightModeAnnunciator::font = 1
private

Definition at line 172 of file Instrument.h.

◆ lateralModeTimer

float FlightModeAnnunciator::lateralModeTimer = 3.0f
private

Definition at line 167 of file Instrument.h.

◆ oldActiveLateralMode

Bus::Afcs::LateralModes FlightModeAnnunciator::oldActiveLateralMode = Bus::Afcs::LateralModes::LateralMode_Off
private

Definition at line 166 of file Instrument.h.

◆ oldActiveVerticalMode

Bus::Afcs::VerticalModes FlightModeAnnunciator::oldActiveVerticalMode = Bus::Afcs::VerticalModes::VerticalMode_Off
private

Definition at line 168 of file Instrument.h.

◆ oldAutopilotEngaged

bool FlightModeAnnunciator::oldAutopilotEngaged = false
private

Definition at line 170 of file Instrument.h.

◆ pixel

Sprite FlightModeAnnunciator::pixel
private

Definition at line 165 of file Instrument.h.

◆ verticalModeTimer

float FlightModeAnnunciator::verticalModeTimer = 3.0f
private

Definition at line 169 of file Instrument.h.


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