This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
DamesEtCo/includes/Dames/PieceDames.hpp
2023-12-25 18:54:04 +01:00

29 lines
470 B
C++

#pragma once
#include "../Piece.hpp"
struct PieceDames : public Piece {
enum Categorie {
Blanche,
Noire,
};
PieceDames(const enum Categorie);
virtual ~PieceDames();
// Getter pour la piece (dame ou non)
bool getDame() const {
return dame;
}
// Setter pour la piece (dame ou non)
void setDame(bool d) {
dame = d;
}
private:
// True si la piece est une dame
bool dame;
std::string to_string(const enum Categorie) const;
};