-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
25 lines (21 loc) · 933 Bytes
/
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
////////////////////////////////////////////////////////////////////////////////
// Game Class //
// player clases data and actions //
////////////////////////////////////////////////////////////////////////////////
#ifndef GAME_H
#define GAME_H
#include "board.h"
#include "player.h"
#include <memory>
class Game {
private:
Board board; //Game board (Composition)
Player* player1; //points to the first player (Association)
Player* player2; //points to the second player (association)
public:
Game(){}; //no args empty contructor
Game(Player* player1, Player* player2); //Constructor with args (overloading)
void SetPlayers(Player *player1, Player *player2); //Sets the game players (polimorfism)
int PlayGame(); // game loop
};
#endif /*GAME_H*/