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/src/Dames/PieceDames.cpp

29 lines
530 B
C++
Raw Normal View History

#include "../../includes/Dames/PieceDames.hpp"
2023-12-01 15:26:34 +01:00
PieceDames::PieceDames(const enum Categorie cat)
: Piece(to_string(cat)), dame(false) {
std::cout << "pièce - " << categorie << "\n";
2023-12-01 15:26:34 +01:00
}
PieceDames::~PieceDames() {}
2023-12-25 19:09:20 +01:00
bool PieceDames::getDame() const {
return dame;
}
void PieceDames::setDame(const bool d) {
dame = d;
}
std::string PieceDames::to_string(const enum Categorie cat) const {
switch (cat) {
case Blanche:
return "Blanche";
case Noire:
return "Noire";
default:
exit(EXIT_FAILURE);
}
}