-
Notifications
You must be signed in to change notification settings - Fork 1
/
Player.hpp
44 lines (35 loc) · 1012 Bytes
/
Player.hpp
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
#ifndef __PLAYER__
#define __PLAYER__
#include <iostream>
#include <string>
#include <vector>
#include "Board.hpp"
#include "Piece.hpp"
#include "Pieces/Bishop.hpp"
#include "Pieces/King.hpp"
#include "Pieces/Queen.hpp"
#include "Pieces/Knight.hpp"
#include "Pieces/Rook.hpp"
#include "Pieces/Pawn.hpp"
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
class Player
{
private:
string _Pseudo;
bool _IsWhite;
bool _IsCheck;
vector <Piece*> _Pieces;
public:
Player(const string name, const bool white);
bool isCheck() const;
int getSize() const;
void promotion(Piece* promotedPawn, const int TYPE);
void setCheck(const bool isCheck);
Piece* getPiece(const double i) const;
Piece* getPiece(const Vector2i temp, const bool window = false) const;
void play(const Vector2i from, const Vector2i to, const Player* Opposite = NULL);
~Player();
};
#endif