Avionics
Dropship Simulator
Page.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Instruments/Instrument.h"
4 #include "Element.h"
5 
6 class Page
7 {
8 private:
9  Bus* bus;
12  bool flip;
13 
14 public:
15  int id;
16  std::string name;
17  std::vector<Instrument*> instruments;
18  std::vector<Element> elements;
19 
20  void Initialize(Bus* prmBus, Logger* prmLogger, DEVICE_OBJECT* prmpDevice, int screenWidth, int screenHeight, std::vector<Font>* fonts, bool flip);
21  void Render(float fElapsed);
22  void Destroy();
23 };
std::vector< Element > elements
Definition: Page.h:18
Definition: Logger.h:5
int id
Definition: Page.h:15
std::string name
Definition: Page.h:16
Definition: Bus.h:12
Definition: Page.h:6
Bus * bus
Definition: Page.h:9
void Render(float fElapsed)
Definition: Page.cpp:42
bool flip
Definition: Page.h:12
Logger * logger
Definition: Page.h:10
DEVICE_OBJECT * pDevice
Definition: Page.h:11
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmpDevice, int screenWidth, int screenHeight, std::vector< Font > *fonts, bool flip)
Definition: Page.cpp:3
void Destroy()
Definition: Page.cpp:56
std::vector< Instrument * > instruments
Definition: Page.h:17