-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
39 lines (31 loc) · 837 Bytes
/
Player.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
#ifndef A2_Player
#define A2_Player
#include <string>
#include "LinkedList.h"
#include "TileSet.h"
class Player {
public:
Player(std::string name);
~Player();
int getScore();
int get_Id();
std::vector<Tile> wallTiling();
bool factoryOffer(Tile tile, int row);
std::string printMosaic();
std::string getName();
bool checkValid(Tile tile, int row);
bool firstPlayer;
private:
std::string name;
int score;
int Id;
int brokenLength;
TileSet** patternLine;
Tile wall[WALL_DIM][WALL_DIM];
Tile brokenTile[MAX_FLOORLINE];
void addScore(int row, int col);
int calcScoreHorizontal(int row, int col, int colS);
int calcScoreVertical(int row, int col, int rowS);
int deductBrokenPoints(std::vector<Tile> &returnTiles);
};
#endif // A2_Player