00001 #ifndef State_I2abdb221m12355049952mm7d0e_H
00002 #define State_I2abdb221m12355049952mm7d0e_H
00003
00004 #include <iostream>
00005
00006 class GameContext;
00008
00009 class State{
00010
00011 public:
00013 virtual void update(){
00014 clearConsole();
00015 };
00017 virtual void doPrint() = 0;
00019 virtual void doGetKey() = 0;
00020 State(){std::ios::sync_with_stdio(false);}
00021 virtual ~State(){ }
00022
00023 protected:
00025 static GameContext *gameContext;
00027 virtual void clearConsole(){
00028 #if defined _WIN32
00029 system("cls");
00030 #endif
00031 }
00032 };
00033 #endif // State_I2abdb221m12355049952mm7d0e_H