Avionics
Dropship Simulator
MovingMap Class Reference

MovingMap. More...

#include <Instrument.h>

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

Public Member Functions

 MovingMap (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 compass
 
Sprite waypointSprite
 
Sprite course
 

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

MovingMap.

Definition at line 254 of file Instrument.h.

Constructor & Destructor Documentation

◆ MovingMap()

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

Definition at line 3 of file MovingMap.cpp.

Member Function Documentation

◆ Initialize()

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

Here is the call graph for this function:

◆ Render()

void MovingMap::Render ( float  fElapsed)
overridevirtual

should be in addition to the runway heading!

Implements Instrument.

Definition at line 34 of file MovingMap.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ compass

Sprite MovingMap::compass
private

Definition at line 257 of file Instrument.h.

◆ course

Sprite MovingMap::course
private

Definition at line 259 of file Instrument.h.

◆ waypointSprite

Sprite MovingMap::waypointSprite
private

Definition at line 258 of file Instrument.h.


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