Avionics
Dropship Simulator
N1Indicator Class Reference

N1. More...

#include <Instrument.h>

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

Public Member Functions

 N1Indicator (int prmX, int prmY, float prmXScale, float prmYScale, std::string prmGuid1, std::string prmGuid2, int prmOrdinal)
 
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 needle
 
Sprite pixel
 
Text digital
 
Text status
 
float n1 = 0.0f
 
Systems::FaultfadecFaultPtr = nullptr
 
Systems::Faultn1FaultPtr = nullptr
 
float * n1GetFloatPtr = nullptr
 
std::string guid1
 
std::string guid2
 

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

N1.

Definition at line 204 of file Instrument.h.

Constructor & Destructor Documentation

◆ N1Indicator()

N1Indicator::N1Indicator ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale,
std::string  prmGuid1,
std::string  prmGuid2,
int  prmOrdinal 
)

Definition at line 3 of file N1Indicator.cpp.

Member Function Documentation

◆ Initialize()

void N1Indicator::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 10 of file N1Indicator.cpp.

Here is the call graph for this function:

◆ Render()

void N1Indicator::Render ( float  fElapsed)
overridevirtual

Implements Instrument.

Definition at line 56 of file N1Indicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ digital

Text N1Indicator::digital
private

Definition at line 210 of file Instrument.h.

◆ fadecFaultPtr

Systems::Fault* N1Indicator::fadecFaultPtr = nullptr
private

Definition at line 214 of file Instrument.h.

◆ guid1

std::string N1Indicator::guid1
private

Definition at line 218 of file Instrument.h.

◆ guid2

std::string N1Indicator::guid2
private

Definition at line 219 of file Instrument.h.

◆ n1

float N1Indicator::n1 = 0.0f
private

Definition at line 212 of file Instrument.h.

◆ n1FaultPtr

Systems::Fault* N1Indicator::n1FaultPtr = nullptr
private

Definition at line 215 of file Instrument.h.

◆ n1GetFloatPtr

float* N1Indicator::n1GetFloatPtr = nullptr
private

Definition at line 216 of file Instrument.h.

◆ needle

Sprite N1Indicator::needle
private

Definition at line 207 of file Instrument.h.

◆ pixel

Sprite N1Indicator::pixel
private

Definition at line 209 of file Instrument.h.

◆ status

Text N1Indicator::status
private

Definition at line 211 of file Instrument.h.


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