36 throw std::exception(
"Tried to render a current page that is outside of the pages collection!");
48 throw std::exception(
"Tried to handle keypress for current page that is outside of the pages collection!");
55 throw std::exception(
"Tried to frameMove a current page that is outside of the pages collection!");
61 for (UINT i = 0; i <
pages.size(); i++)
63 if (
pages.at(i).name == pageName)
80 command.
name =
"UpdateMfdPage";
91 if (i < 0 || i >= static_cast<int>(
pages.size()))
92 throw std::exception(
"Tried to ChangePage using a current page that is outside of the pages collection!");
106 if (currentPage < 0 || currentPage >=
pages.size())
107 throw std::exception(
"Tried to RestorePage on a current page that is outside of the pages collection!");
void FrameMove(float fElapsed)
std::vector< Command > commandStream
bool HandleKeyPress(short key, bool shift)
void OnPageChange(bool sendUpdate=true)
std::vector< Page > pages
bool ChangePage(const std::string &pageName)