Rise
The Vieneo Province
EngineBar Class Reference

#include <Instrument.h>

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

Public Member Functions

 EngineBar (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts, int prmEngineIndex)
 
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

Spritebox = nullptr
 
Spritebar = nullptr
 
int engineIndex = -1
 
DWORD color = 0L
 
int yBias = 0
 
int bottomBias = 0
 

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

Constructor & Destructor Documentation

◆ EngineBar()

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

Definition at line 4 of file EngineBar.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void EngineBar::FrameMove ( float  fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 26 of file EngineBar.cpp.

Here is the call graph for this function:

◆ Render()

void EngineBar::Render ( )
overridevirtual

Implements Instrument.

Definition at line 15 of file EngineBar.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bar

Sprite* EngineBar::bar = nullptr
private

Definition at line 183 of file Instrument.h.

◆ bottomBias

int EngineBar::bottomBias = 0
private

Definition at line 187 of file Instrument.h.

◆ box

Sprite* EngineBar::box = nullptr
private

Definition at line 182 of file Instrument.h.

◆ color

DWORD EngineBar::color = 0L
private

Definition at line 185 of file Instrument.h.

◆ engineIndex

int EngineBar::engineIndex = -1
private

Definition at line 184 of file Instrument.h.

◆ yBias

int EngineBar::yBias = 0
private

Definition at line 186 of file Instrument.h.


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