10 #include "../Rendering/DeviceObject.h" 11 #include "../Rendering/Sprite.h" 12 #include "../Rendering/Font.h" 13 #include "../Rendering/Text.h" 25 std::vector<Font>*
fonts =
nullptr;
37 Instrument(
int prmX,
int prmY,
float prmXScale,
float prmYScale)
56 void DrawText(
const WCHAR* str,
int x,
int y,
int flags, D3DXCOLOR color,
int font, std::string elementName)
60 newcolor = color * 0.5f;
67 rc.bottom = rc.right = 0;
75 virtual void Render(
float fElapsed) = 0;
102 IndicatedAirSpeedTape(
int prmX,
int prmY,
int prmWidth,
int prmHeight, std::string prmTextureFile,
float prmModulateKm);
103 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
104 void Render(
float fElapsed)
override;
124 AttitudeIndicator(
int prmX,
int prmY,
int prmWidth,
int prmHeight, std::string prmTextureFile);
125 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
126 void Render(
float fElapsed)
override;
142 AltitudeTape(
int prmX,
int prmY,
int prmWidth,
int prmHeight, std::string prmTextureFile,
float prmModulateKm);
143 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
144 void Render(
float fElapsed)
override;
157 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
158 void Render(
float fElapsed)
override;
176 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
177 void Render(
float fElapsed)
override;
191 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
192 void Render(
float fElapsed)
override;
199 Diagnostics(
int prmX,
int prmY,
float prmXScale,
float prmYScale);
200 void Render(
float fElapsed)
override;
222 N1Indicator(
int prmX,
int prmY,
float prmXScale,
float prmYScale, std::string prmGuid1, std::string prmGuid2,
int prmOrdinal);
223 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
224 void Render(
float fElapsed)
override;
245 ITTIndicator(
int prmX,
int prmY,
float prmXScale,
float prmYScale, std::string prmGuid1, std::string prmGuid2,
int prmOrdinal);
246 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
247 void Render(
float fElapsed)
override;
262 MovingMap(
int prmX,
int prmY,
float prmXScale,
float prmYScale);
263 void Initialize(
Bus* prmBus,
Logger* prmLogger,
DEVICE_OBJECT* prmDevice,
int prmScreenWidth,
int prmScreenHeight, std::vector<Font>* prmFonts,
bool prmFlip)
override;
264 void Render(
float fElapsed)
override;
Forward definitions for the instruments are below.
virtual void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip)
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
AltitudeTape(int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile, float prmModulateKm)
void Render(float fElapsed) override
void DrawText(const WCHAR *str, int x, int y, int flags, D3DXCOLOR color, int font, std::string elementName)
Systems::Fault * n1FaultPtr
Bus::Afcs::VerticalModes oldActiveVerticalMode
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
N1Indicator(int prmX, int prmY, float prmXScale, float prmYScale, std::string prmGuid1, std::string prmGuid2, int prmOrdinal)
Systems::Fault * fadecFaultPtr
IndicatedAirSpeedTape(int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile, float prmModulateKm)
Alert Message Stack (CAS)
Bus::Afcs::LateralModes oldActiveLateralMode
Instrument(int prmX, int prmY, float prmXScale, float prmYScale)
void Render(float fElapsed) override
HeadingIndicator(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
Abstract base class for instrumentation By definition, instruments don't do any of the work (they don...
void Render(float fElapsed) override
Diagnostics(int prmX, int prmY, float prmXScale, float prmYScale)
void Render(float fElapsed) override
AlertMessageStack(int prmX, int prmY, float prmXScale, float prmYScale)
void Render(float fElapsed) override
void Render(float fElapsed) override
void Render(float fElapsed) override
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
ITTIndicator(int prmX, int prmY, float prmXScale, float prmYScale, std::string prmGuid1, std::string prmGuid2, int prmOrdinal)
void Render(float fElapsed) override
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
std::vector< Font > * fonts
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
MovingMap(int prmX, int prmY, float prmXScale, float prmYScale)
virtual void Render(float fElapsed)=0
AttitudeIndicator(int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile)
bool IsDim(std::string elementName)
FlightModeAnnunciator(int prmX, int prmY, float prmXScale, float prmYScale)
void Render(float fElapsed) override
VerticalModes
so I guess we allow them to fly until they get to x degrees off
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
float * ignitorAGetFloatPtr
void Render(float fElapsed) override