Avionics
Dropship Simulator
|
Heading. More...
#include <Instrument.h>
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 | |
Bus * | bus = nullptr |
Logger * | logger = nullptr |
int | screenWidth = 0 |
int | screenHeight = 0 |
DEVICE_OBJECT * | pDevice = 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 |
Heading.
Definition at line 148 of file Instrument.h.
HeadingIndicator::HeadingIndicator | ( | int | prmX, |
int | prmY, | ||
float | prmXScale, | ||
float | prmYScale | ||
) |
Definition at line 3 of file HeadingIndicator.cpp.
|
overridevirtual |
Reimplemented from Instrument.
Definition at line 7 of file HeadingIndicator.cpp.
|
overridevirtual |
true was 001 now 358 ... tracker tries to go from 001 to 358
Implements Instrument.
Definition at line 21 of file HeadingIndicator.cpp.
|
private |
Definition at line 151 of file Instrument.h.
|
private |
Definition at line 153 of file Instrument.h.
|
private |
Definition at line 152 of file Instrument.h.