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/Safari/PieceSafari.cpp
2024-01-06 17:35:02 +01:00

28 lines
664 B
C++

#include "../../includes/Safari/PieceSafari.hpp"
PieceSafari::PieceSafari(const enum Categorie cat, const int posX,
const int posY)
: Piece(to_string(cat), posX, posY) {}
PieceSafari::~PieceSafari() {}
const std::string PieceSafari::to_string(const enum Categorie cat) const {
switch (cat) {
case Barriere:
return "Barrière";
case Elephant:
return "Éléphant";
case Rhinoceros:
return "Rhinocéros";
case Lion:
return "Lion";
default:
throw std::logic_error("Catégorie inconnue (PieceSafari).");
}
}
const sf::Color PieceSafari::getScreenColor() const {
// TODO
return sf::Color::White;
}