Rise
The Vieneo Province
Loading...
Searching...
No Matches
EngineBox Class Reference

#include <Instrument.h>

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

Public Member Functions

 EngineBox (int prmX, int prmY, float prmZ, 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, RiseMath::Color color, int font=-1, std::string elementName="", int width=0, int height=0) const
virtual bool HandleKeyPress (short key, bool shift)
virtual bool UpdateKeyRepeat (const unsigned char *keys, bool shift, float elapsed)
virtual void OnPageChanged ()

Private Attributes

Sprite * box = nullptr
int engineIndex = -1
float z
WCHAR label [5] = { 0 }
WCHAR percent [5] = { 0 }
DWORD color = 0L

Additional Inherited Members

Public Attributes inherited from Instrument
std::string profileName = "Instrument"
Protected Attributes inherited from Instrument
int x = 0
int y = 0
float xScale = 1.0f
float yScale = 1.0f
DeviceObject * pDevice = nullptr
Bus * bus = nullptr
Logger * logger = nullptr
UINT defaultFont = 0
bool cacheFixedText = false
int uiRow = 0
bool showMenu = false
int uiMenuColumn = -1

Detailed Description

Definition at line 198 of file Instrument.h.

Constructor & Destructor Documentation

◆ EngineBox()

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

Definition at line 4 of file EngineBox.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ FrameMove()

void EngineBox::FrameMove ( float fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 36 of file EngineBox.cpp.

Here is the call graph for this function:

◆ Render()

void EngineBox::Render ( )
overridevirtual

Implements Instrument.

Definition at line 19 of file EngineBox.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ box

Sprite* EngineBox::box = nullptr
private

Definition at line 200 of file Instrument.h.

◆ color

DWORD EngineBox::color = 0L
private

Definition at line 205 of file Instrument.h.

◆ engineIndex

int EngineBox::engineIndex = -1
private

Definition at line 201 of file Instrument.h.

◆ label

WCHAR EngineBox::label[5] = { 0 }
private

Definition at line 203 of file Instrument.h.

◆ percent

WCHAR EngineBox::percent[5] = { 0 }
private

Definition at line 204 of file Instrument.h.

◆ z

float EngineBox::z
private

Definition at line 202 of file Instrument.h.


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