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

35 lines
717 B
C++
Raw Normal View History

#include "../../includes/Dames/PieceDames.hpp"
2023-12-01 15:26:34 +01:00
2023-12-29 02:09:11 +01:00
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";
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:
2023-12-27 21:39:18 +01:00
std::cerr << "Catégorie inconnue (PieceDames).\n";
exit(EXIT_FAILURE);
}
}
2023-12-28 22:05:00 +01:00
sf::Color PieceDames::getScreenColor() const {
// TODO
return sf::Color::White;
}