Rise
The Vieneo Province
MovingMap Class Reference

#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, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void Render () override
 
void FrameMove (float fElapsed) override
 
- Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void DrawText (const WCHAR *str, int relativeX, int relativeY, float prmZ, int flags, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0)
 
virtual bool HandleKeyPress (short key, bool shift)
 
virtual void OnPageChanged ()
 

Private Attributes

Spritecompass = nullptr
 
SpriteheadingBug = nullptr
 
SpritebearingBug = nullptr
 
SpriteflyoverFix = nullptr
 
SpritemalteseFix = nullptr
 
Spritetouchdown = nullptr
 
SpriteuserPin = nullptr
 
Spriteassay = nullptr
 
float pixelPerKmX = 0.0f
 
float pixelPerKmY = 0.0f
 
std::vector< Swaypoint > waypoints
 
float iconOffsetX = 0.0f
 
float iconOffsetY = 0.0f
 
float headingTrueRad = 0.0f
 
VECTOR2SHORT assayGrid [21]
 
DWORD assayColor [21] = {}
 
D3DXVECTOR2 relativeCenter = D3DXVECTOR2(0, 0)
 
float remoteAssayPower = 0.0f
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
int x = 0
 
int y = 0
 
float xScale = 1.0f
 
float yScale = 1.0f
 
DeviceObjectpDevice = nullptr
 
Busbus = nullptr
 
Loggerlogger = nullptr
 
UINT defaultFont = 0
 
int uiRow = 0
 
bool showMenu = false
 
int uiMenuColumn = -1
 

Detailed Description

Definition at line 250 of file Instrument.h.

Constructor & Destructor Documentation

◆ MovingMap()

MovingMap::MovingMap ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale,
Bus prmBus,
Logger prmLogger,
DeviceObject prmDevice,
std::vector< Font *>  prmFonts 
)

Definition at line 3 of file MovingMap.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void MovingMap::FrameMove ( float  fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 150 of file MovingMap.cpp.

Here is the call graph for this function:

◆ Render()

void MovingMap::Render ( )
overridevirtual
Todo:
internal list sorted by distance so we can take top 30?

Implements Instrument.

Definition at line 33 of file MovingMap.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ assay

Sprite* MovingMap::assay = nullptr
private

Definition at line 259 of file Instrument.h.

◆ assayColor

DWORD MovingMap::assayColor[21] = {}
private

Definition at line 268 of file Instrument.h.

◆ assayGrid

VECTOR2SHORT MovingMap::assayGrid[21]
private

Definition at line 267 of file Instrument.h.

◆ bearingBug

Sprite* MovingMap::bearingBug = nullptr
private

Definition at line 254 of file Instrument.h.

◆ compass

Sprite* MovingMap::compass = nullptr
private

Definition at line 252 of file Instrument.h.

◆ flyoverFix

Sprite* MovingMap::flyoverFix = nullptr
private

Definition at line 255 of file Instrument.h.

◆ headingBug

Sprite* MovingMap::headingBug = nullptr
private

Definition at line 253 of file Instrument.h.

◆ headingTrueRad

float MovingMap::headingTrueRad = 0.0f
private

Definition at line 266 of file Instrument.h.

◆ iconOffsetX

float MovingMap::iconOffsetX = 0.0f
private

Definition at line 264 of file Instrument.h.

◆ iconOffsetY

float MovingMap::iconOffsetY = 0.0f
private

Definition at line 265 of file Instrument.h.

◆ malteseFix

Sprite* MovingMap::malteseFix = nullptr
private

Definition at line 256 of file Instrument.h.

◆ pixelPerKmX

float MovingMap::pixelPerKmX = 0.0f
private

Definition at line 261 of file Instrument.h.

◆ pixelPerKmY

float MovingMap::pixelPerKmY = 0.0f
private

Definition at line 262 of file Instrument.h.

◆ relativeCenter

D3DXVECTOR2 MovingMap::relativeCenter = D3DXVECTOR2(0, 0)
private

Definition at line 269 of file Instrument.h.

◆ remoteAssayPower

float MovingMap::remoteAssayPower = 0.0f
private

Definition at line 270 of file Instrument.h.

◆ touchdown

Sprite* MovingMap::touchdown = nullptr
private

Definition at line 257 of file Instrument.h.

◆ userPin

Sprite* MovingMap::userPin = nullptr
private

Definition at line 258 of file Instrument.h.

◆ waypoints

std::vector<Swaypoint> MovingMap::waypoints
private

Definition at line 263 of file Instrument.h.


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