Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 15 / Chess / Figures / FigureBase / Figure.h
blob: 3e0bc0747ff566b4b99dd8ac7310ffa0f540b45b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include <iostream>
#include "../../ConfigEnums/ConfigEnums.h"

class Figure
{
	bool isWhite;
	FigureType type;

public:
	Figure(bool isWhite, FigureType type) :isWhite(isWhite), type(type)
	{}
	virtual bool canBeMoved(size_t currentX, size_t currentY, size_t destX, size_t destY) const = 0;
	virtual void print() const = 0;

	bool getIsWhite() const { return isWhite; };
	FigureType getType() const { return type; }

	virtual ~Figure(){};
};