Avionics
Dropship Simulator
HeadingIndicator Class Reference

Heading. More...

#include <Instrument.h>

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

Public Member Functions

 HeadingIndicator (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 compassMoving
 
float hdg = 0.0f
 
UINT font = 0
 

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

Heading.

Definition at line 148 of file Instrument.h.

Constructor & Destructor Documentation

◆ HeadingIndicator()

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

Definition at line 3 of file HeadingIndicator.cpp.

Member Function Documentation

◆ Initialize()

void HeadingIndicator::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 HeadingIndicator.cpp.

Here is the call graph for this function:

◆ Render()

void HeadingIndicator::Render ( float  fElapsed)
overridevirtual

true was 001 now 358 ... tracker tries to go from 001 to 358

Implements Instrument.

Definition at line 21 of file HeadingIndicator.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ compassMoving

Sprite HeadingIndicator::compassMoving
private

Definition at line 151 of file Instrument.h.

◆ font

UINT HeadingIndicator::font = 0
private

Definition at line 153 of file Instrument.h.

◆ hdg

float HeadingIndicator::hdg = 0.0f
private

Definition at line 152 of file Instrument.h.


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