-
Notifications
You must be signed in to change notification settings - Fork 0
/
PieceLocations.h
46 lines (36 loc) · 940 Bytes
/
PieceLocations.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
#pragma once
#include "Box.h"
#include <vector>
#include <stdint.h>
class PieceLocations
{
public:
Box& getKingLocation();
std::vector<Box>& getPawnLocations();
std::vector<Box>& getKnightLocations();
std::vector<Box>& getRookLocations();
std::vector<Box>& getBishopLocations();
std::vector<Box>& getQueenLocations();
void clear();
void setKingLocation(Box);
void removePawn(Box);
void removeKnight(Box);
void removeRook(Box);
void removeBishop(Box);
void removeQueen(Box);
void removePiece(uint8_t, Box);
void updatePiece(uint8_t, Box, Box);
void addPiece(uint8_t, Box);
void updatePawn(Box,Box);
void updateRook(Box,Box);
void updateKnight(Box,Box);
void updateBishop(Box,Box);
void updateQueen(Box,Box);
private:
Box kingLocation;
std::vector<Box> pawnLocations;
std::vector<Box> knightLocations;
std::vector<Box> rookLocations;
std::vector<Box> bishopLocations;
std::vector<Box> queenLocations;
};