#include "../../includes/Dames/PieceDames.hpp" PieceDames::PieceDames(const enum Categorie cat) : Piece(to_string(cat)), dame(false) { std::cout << "pièce - " << categorie << "\n"; } PieceDames::~PieceDames() {} 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: std::cerr << "Catégorie inconnue (PieceDames).\n"; exit(EXIT_FAILURE); } }