RTS2D
|
00001 #ifndef PAUSESTATE_H 00002 #include "State.h" 00003 #define PAUSESTATE_H 00004 00008 class PauseState : public State { 00009 public: 00010 PauseState(ALLEGRO_DISPLAY* display, ALLEGRO_TIMER* timer,ALLEGRO_EVENT_QUEUE* queue); 00011 virtual ~PauseState(); 00012 static PauseState* getInstance(ALLEGRO_DISPLAY* display, ALLEGRO_TIMER* timer, ALLEGRO_EVENT_QUEUE* queue) { 00013 if (instance == NULL) { 00014 instance = new PauseState(display, timer, queue); 00015 } 00016 return instance; 00017 } 00018 void readInput(StateManager* sm); 00019 void update(StateManager* sm); 00020 void render(StateManager* sm); 00021 00022 protected: 00023 private: 00024 static PauseState* instance; 00025 }; 00026 00027 #endif // PAUSESTATE_H