Space Walk board game
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
773 B

#ifndef MAINGAME_H
#define MAINGAME_H
// Each player holds 9 ships, 3 of each size
#define SHIP_SIZE 18
#define PLAYER_SIZE 2
#include <vector>
#include "gamestate.h"
class Board;
class BoardWindow;
class InfoWindow;
class Player;
class SpaceShip;
class MainGame : public GameState
{
public:
MainGame(Player **player);
void initialize();
void update();
void render();
void destroy();
private:
void phase1();
void phase2();
void nextPlayerTurn();
void calculateWinner();
std::string help;
bool phase;
bool changePhase;
unsigned char playerTurn;
char queuePlanet;
std::vector<SpaceShip *> *queue;
Player **player;
Board *board;
SpaceShip **ship;
BoardWindow *boardWindow;
InfoWindow *infoWindow;
};
#endif // MAINGAME_H