Rise
The Vieneo Province
AlertMessageStack Class Reference

#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, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void Render () 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 void FrameMove (float fElapsed)
 
virtual bool HandleKeyPress (short key, bool shift)
 
virtual void OnPageChanged ()
 

Private Attributes

Spritesprite = nullptr
 

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 241 of file Instrument.h.

Constructor & Destructor Documentation

◆ AlertMessageStack()

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

Definition at line 4 of file AlertMessageStack.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Render()

void AlertMessageStack::Render ( )
overridevirtual

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 13 of file AlertMessageStack.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ sprite

Sprite* AlertMessageStack::sprite = nullptr
private

Definition at line 243 of file Instrument.h.


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