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

30 lines
470 B
C++
Raw Normal View History

#pragma once
2023-12-01 15:26:34 +01:00
#include "../Piece.hpp"
2023-12-01 15:26:34 +01:00
struct PieceDames : public Piece {
enum Categorie {
Blanche,
Noire,
};
PieceDames(const enum Categorie);
virtual ~PieceDames();
2023-12-25 18:54:04 +01:00
2023-12-19 15:55:56 +01:00
// Getter pour la piece (dame ou non)
2023-12-25 18:54:04 +01:00
bool getDame() const {
return dame;
}
2023-12-19 15:55:56 +01:00
// Setter pour la piece (dame ou non)
2023-12-25 18:54:04 +01:00
void setDame(bool d) {
dame = d;
}
private:
2023-12-12 12:15:53 +01:00
// True si la piece est une dame
bool dame;
2023-12-13 12:01:59 +01:00
std::string to_string(const enum Categorie) const;
2023-12-01 15:26:34 +01:00
};