-
Notifications
You must be signed in to change notification settings - Fork 0
/
StoreMove.h
87 lines (73 loc) · 2.54 KB
/
StoreMove.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#pragma once
#include "Move.h"
#include <stdint.h>
class StoreMove
{
public:
void init(StoreMove*, Move, bool, bool, Box, bool, uint8_t);
void setNext(StoreMove*);
StoreMove* getNext();
StoreMove();
Move getMove();
bool tookPiece();
Box getPreviousEnPassant();
bool getPreviousWhiteKingSide();
bool getPreviousWhiteQueenSide();
bool getPreviousBlackKingSide();
bool getPreviousBlackQueenSide();
uint8_t getTakenPiece();
void setMove(Move);
void setPreviousCastles(bool, bool, bool, bool);
void setPreviousEnPassant(Box);
void setTookPiece(bool);
void setPieceTaken(uint8_t);
void setThreatInfo(uint8_t, uint8_t, uint8_t, uint8_t, int,bool,Box previousAttackedFrom);
void setThreatBoxes(Box, Box, Box, Box, Box, Box, Box, Box
,Box, Box, Box, Box, Box, Box, Box, Box);
Box getPreviousWhiteStraightLeftBox();
Box getPreviousWhiteStraightRightBox();
Box getPreviousWhiteStraightUpBox();
Box getPreviousWhiteStraightDownBox();
Box getPreviousWhiteUpLeftBox();
Box getPreviousWhiteUpRightBox();
Box getPreviousWhiteDownRightBox();
Box getPreviousWhiteDownLeftBox();
Box getPreviousBlackStraightLeftBox();
Box getPreviousBlackStraightRightBox();
Box getPreviousBlackStraightUpBox();
Box getPreviousBlackStraightDownBox();
Box getPreviousBlackUpLeftBox();
Box getPreviousBlackUpRightBox();
Box getPreviousBlackDownRightBox();
Box getPreviousBlackDownLeftBox();
uint8_t getPreviousWhiteThreatenedInfo();
uint8_t getPreviousBlackThreatenedInfo();
uint8_t getPreviousWhiteAttackedInfo();
uint8_t getPreviousBlackAttackedInfo();
int getPreviousAmountAttacked();
bool getPreviousAttackedByKnight();
Box getPreviousAttackedFromBox();
private:
StoreMove* next;
Move move;
bool previousWhiteKingSide;
bool previousBlackKingSide;
bool previousWhiteQueenSide;
bool previousBlackQueenSide;
Box previousEnPassant;
bool tookAPiece;
uint8_t pieceTaken;
bool previousAttackedByKnight;
uint8_t previousWhiteThreatenedInfo;
uint8_t previousBlackThreatenedInfo;
uint8_t previousWhiteAttackedInfo;
uint8_t previousBlackAttackedInfo;
Box previousAttackedFromBox;
int previousAmountAttacked;
Box previousWhiteStraightLeftBox, previousWhiteStraightRightBox, previousWhiteStraightUpBox,
previousWhiteStraightDownBox, previousWhiteUpLeftBox, previousWhiteUpRightBox,
previousWhiteDownRightBox, previousWhiteDownLeftBox;
Box previousBlackStraightLeftBox, previousBlackStraightRightBox, previousBlackStraightUpBox,
previousBlackStraightDownBox, previousBlackUpLeftBox, previousBlackUpRightBox,
previousBlackDownRightBox, previousBlackDownLeftBox;
};