-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewGame.h
61 lines (42 loc) · 1.49 KB
/
ViewGame.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
/*
* Yael Hacmon, ID 313597897
* Roni Fultheim, ID 313465965
*/
#ifndef VIEWGAME_H_
#define VIEWGAME_H_
#include "Board.h"
#include "Player.h"
using namespace std;
// this cladd represent the view of the game. all the type of the function
// are pure virtual.
class ViewGame {
public:
ViewGame() {}
virtual ~ViewGame() {}
// present the board
virtual void printBoard(Board::ElementInBoard** board, int sizeOfBoard) const = 0;
// message to switch turns
virtual void messageForTurn (Player* curPlayer) const = 0;
// message of possible moves
virtual void messagePossibleMoves(const vector<Location>& possibleMoves) const = 0;
//returns next move that player chose
virtual Location getMoveFromPlayer() const = 0;
// massage that there are no move to do
virtual void messageNoMoves() const = 0;
// message to switch turns becouse there are no moves for other player
virtual void messageSwitchTurns() const = 0;
// dislpay the board
virtual void messageBoard() const = 0;
// display the player's last move
virtual void messagePlayerMove(Location pointToDisplay, Player* curPlayer) const = 0;
// message who is the winner
virtual void messageWinner(Player* winPlayer) const = 0;
//message if there is "TIKO"
virtual void messageTiko() const = 0;
virtual void messageIllegalMove() const;
// message for input
virtual void messageEnterMove() const = 0;
// massage the move is not valid
virtual void messageInvalidMove() const = 0;
};
#endif /* VIEWGAME_H_ */