-
Notifications
You must be signed in to change notification settings - Fork 0
/
CBishop.h
40 lines (32 loc) · 959 Bytes
/
CBishop.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 CBISHOP_H
#define CBISHOP_H
#include "CPiece.h"
#include "COLOR.h"
/**
* Class representing bishop piece
*/
class CBishop : public CPiece {
public:
CBishop();
/**
* Initiates a bishop with given parameters
* @param color A color of the bishop
* @param row A row of the bishop on a chessboard
* @param col A column of the bishop on a chessboard
*/
CBishop(COLOR col , int x, int y);
virtual ~CBishop();
/**
* Checks available moves for this bishop
* @param gS Reference to the instance of a game
* @return Reference to a list of all possible moves of this bishop
*/
virtual CMoveList & getLegalMoves(const CGameSession & gS);
/**
* Copies an instance of the bishop
* @param pcs a pointer to the bishop, to be copied
* @return a new instance of this bishop
*/
virtual CPiece* copyPiece(const CPiece* pcs) const ;
};
#endif /* CBISHOP_H */