Avionics
Dropship Simulator
AlertMessageStack Class Reference

Alert Message Stack (CAS) More...

#include <Instrument.h>

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

Public Member Functions

 AlertMessageStack (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 sprite
 

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

Alert Message Stack (CAS)

Definition at line 184 of file Instrument.h.

Constructor & Destructor Documentation

◆ AlertMessageStack()

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

Definition at line 3 of file AlertMessageStack.cpp.

Member Function Documentation

◆ Initialize()

void AlertMessageStack::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 9 of file AlertMessageStack.cpp.

Here is the call graph for this function:

◆ Render()

void AlertMessageStack::Render ( float  fElapsed)
overridevirtual

purple 1, 0, 1





red 1, 0, 0

amber 1, 1, 0

cyan 0, 1, 1

white 1,1,1

END is always visible

Todo:
we need to count how many are off page and limit page

Implements Instrument.

Definition at line 20 of file AlertMessageStack.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ sprite

Sprite AlertMessageStack::sprite
private

Definition at line 187 of file Instrument.h.


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