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

33 lines
702 B
C++

#include "../../includes/Dames/PieceDames.hpp"
PieceDames::PieceDames(const enum Categorie cat, const int posX, const int posY)
: Piece(to_string(cat), posX, posY), 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:
throw std::logic_error("Catégorie inconnue (PieceDames).");
}
}
sf::Color PieceDames::getScreenColor() const {
// TODO
return sf::Color::White;
}