-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPiece.h
More file actions
57 lines (46 loc) · 1.14 KB
/
Piece.h
File metadata and controls
57 lines (46 loc) · 1.14 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Piece.h
// BCAI
//
// Created by Max Botviniev on 20.10.15.
// Copyright (c) 2015 Max Botviniev. All rights reserved.
//
#ifndef __BCAI__Piece__
#define __BCAI__Piece__
#include <stdio.h>
#include <vector>
#include <typeinfo>
//-------------------
#include "Position.hpp"
#include <iostream>
namespace BCAI {
//ReDeclaration !!!
//class Board;
class Piece {
private:
//Data
Position position_v;
char type_v;
bool white_v;
unsigned int score_v;
public:
std::vector<IndexPair> axes;
//---------------------
//Constructors / Destructors
Piece();
Piece(Position _position_v, unsigned int _score_v, bool _white_v, char _type_v);
Piece(const Piece & _copy);
~Piece();
//Accesors
bool White();
Position & GetPosition();
unsigned int GetScore();
char GetType();
size_t Axes();
//Algorythms
//virtual bool AlowedMove( const Board & board_r, const IndexPair & from, const IndexPair & to );
void operator = ( Piece & other);
friend std::ostream & operator << (std::ostream & out, Piece & piece);
};
}
#endif /* defined(__BCAI__Piece__) */