Space Walk board game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
773 B

  1. #ifndef MAINGAME_H
  2. #define MAINGAME_H
  3. // Each player holds 9 ships, 3 of each size
  4. #define SHIP_SIZE 18
  5. #define PLAYER_SIZE 2
  6. #include <vector>
  7. #include "gamestate.h"
  8. class Board;
  9. class BoardWindow;
  10. class InfoWindow;
  11. class Player;
  12. class SpaceShip;
  13. class MainGame : public GameState
  14. {
  15. public:
  16. MainGame(Player **player);
  17. void initialize();
  18. void update();
  19. void render();
  20. void destroy();
  21. private:
  22. void phase1();
  23. void phase2();
  24. void nextPlayerTurn();
  25. void calculateWinner();
  26. std::string help;
  27. bool phase;
  28. bool changePhase;
  29. unsigned char playerTurn;
  30. char queuePlanet;
  31. std::vector<SpaceShip *> *queue;
  32. Player **player;
  33. Board *board;
  34. SpaceShip **ship;
  35. BoardWindow *boardWindow;
  36. InfoWindow *infoWindow;
  37. };
  38. #endif // MAINGAME_H