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