All pastes #114594 Raw Edit

Something

public cpp v1 · immutable
·published 2006-08-04 03:26 UTC
rendered paste body
// 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;}