-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathempty_piece.h
37 lines (28 loc) · 850 Bytes
/
empty_piece.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
/*
* emptypiece.h
*
* Created on: Apr 30, 2012
* Author: ei10001
*/
#ifndef EMPTY_PIECE_H_
#define EMPTY_PIECE_H_
#include "game_piece.h"
class Empty_piece: public Game_piece {
public:
Empty_piece(Vector_2D pos);
virtual ~Empty_piece();
std::string get_textual_representation() const;
std::vector<Vector_2D> valid_moves(Board& board) const;
std::vector<Vector_2D> generate_moves(Board& board) const;
std::vector<Vector_2D> validate_moves(Board& board, std::vector<Vector_2D> moves) const;
std::vector<Vector_2D> generate_jumps(Board& board) const;
std::vector<Vector_2D> validate_jumps(Board& board, std::vector<Vector_2D> jumps) const;
bool valid_move(Vector_2D move, Board& board);
virtual Empty_piece* clone() {
return new Empty_piece(*this);
}
virtual int worth() {
return 0;
}
};
#endif /* EMPTY_PIECE_H_ */