-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle_piece.h
34 lines (27 loc) · 864 Bytes
/
circle_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
#ifndef CIRCLEPIECE_H_
#define CIRCLEPIECE_H_
#include <vector>
#include <stack>
#include <string>
class Board;
class Cell;
#include "board.h"
class Circle_piece: public Game_piece {
public:
Circle_piece(Vector_2D pos, Player_ID owner);
virtual ~Circle_piece();
bool valid_move(Vector_2D move, Board& board);
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;
std::string get_textual_representation() const;
virtual Circle_piece* clone() {
return new Circle_piece(*this);
}
virtual int worth() {
return 4;
}
};
#endif /* CIRCLEPIECE_H_ */