-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
62 lines (48 loc) · 1.18 KB
/
Game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// jammon17@georgefox.edu
// Assignment 9
// 2019-04-24
#ifndef _GAME_H
#define _GAME_H
using namespace std;
// forward declarations
class Piece;
class Player;
class Board;
/**
* Implements a Game object that initializes and runs the main
* logic of the game
*/
class Game {
public:
/**
* Initializes the game, creates the pieces/players/board
* places each piece in the starting location
*/
static void initialize();
/**
* Finalizes the game, deletes the singleton instance of Board
*/
static void finalize();
/**
* Runs the game, turns, and will keep score
*/
static void runGame();
/**
* Gets the next player based off of the current player
*
* @param current (Player&) - the current player
* @return Player* to the next player
*/
static Player* getNextPlayer(Player& current);
/**
* Gets the opponent player based off of the sent in player
*
* @param current (Player&) - the current player
* @return Player* to the next player
*/
static Player* getOpponentOf(Player& player);
private:
static Player* player1;
static Player* player2;
};
#endif //_GAME_H