// An abstract State Controller for the gamestate.// Right now it will have nothing to do with a game// so that the effectiveness of the state management// itself can be tested.#include <iostream>using namespace std;class GameState{public: enum currentstate {simulation, shutdown}; void setcurrentstate(enum currentstate afThisState); currentstate getcurrentstate(); currentstate afThisState;private: currentstate ThisState;};void GameState::setcurrentstate(enum currentstate afThisState){ ThisState = afThisState;}currentstate GameState::getcurrentstate(){ return afThisState;}int main(){ GameState Status; cout << Status.getcurrentstate(); return 0;}