00001 #ifndef _MM_ENDGAME_GS_H_
00002 #define _MM_ENDGAME_GS_H_
00003
00004 #include "gamestate.h"
00005 #include "net/NetClient.h"
00006 #include "net/NetCallback.h"
00007 #include "scoremenu.h"
00008 #include "fire/fire.h"
00009
00010
00011
00012
00013
00014 #define TICK_DELTA 10
00015
00016 #define BLOCK_COUNT 7
00017 #define X_SIZE 10
00018 #define Y_SIZE 10
00019
00020 using namespace MMNet;
00021 class EndGameGSback;
00022
00023 class EndGameGS : public GameState {
00024 public:
00025
00026 EndGameGS(MMNet::NetClient *client, ScoreMenu * scoreMenu) : GameState(client) {
00027 this->scoreMenu = scoreMenu;
00028 };
00029
00030 void init();
00031 void update();
00032 void exit();
00033 void display();
00034
00035 void startGame();
00036
00037 private:
00038 Fire * fire;
00039
00040 ScoreMenu * scoreMenu;
00041 bool setupComplete;
00042
00043 int tickCount;
00044
00045 EndGameGSback *callback;
00046
00047 };
00048
00049 class EndGameGSback : public GameCallback {
00050 private:
00051 EndGameGS *parent;
00052
00053 public:
00054 EndGameGSback(EndGameGS *parent) { this->parent = parent; }
00055
00056 void SetupGame(TNL::U32 seed) { };
00057
00058 void StartGame() {
00059 parent->startGame();
00060 }
00061
00062 void EndGame() { };
00063
00064 };
00065
00066 #endif
00067