Rise
The Vieneo Province
CarRadio Class Reference

#include <Instrument.h>

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

Public Member Functions

 CarRadio (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

Spritebackground = nullptr
 
float m_fAnimateFrame = 0.0f
 
float textpos = 0.0f
 
WCHAR nowPlaying [99] = { 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 348 of file Instrument.h.

Constructor & Destructor Documentation

◆ CarRadio()

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

Definition at line 4 of file CarRadio.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void CarRadio::FrameMove ( float  fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 26 of file CarRadio.cpp.

◆ Render()

void CarRadio::Render ( )
overridevirtual

Implements Instrument.

Definition at line 13 of file CarRadio.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ background

Sprite* CarRadio::background = nullptr
private

Definition at line 350 of file Instrument.h.

◆ m_fAnimateFrame

float CarRadio::m_fAnimateFrame = 0.0f
private

Definition at line 351 of file Instrument.h.

◆ nowPlaying

WCHAR CarRadio::nowPlaying[99] = { 0 }
private

Definition at line 353 of file Instrument.h.

◆ textpos

float CarRadio::textpos = 0.0f
private

Definition at line 352 of file Instrument.h.


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