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

24 lines
499 B
C++
Raw Normal View History

#include "../../includes/Safari/PieceSafari.hpp"
2023-12-10 15:03:07 +01:00
PieceSafari::PieceSafari(const enum Categorie cat) : Piece(to_string(cat)) {
std::cout << "pièce - " << categorie << "\n";
2023-12-10 15:03:07 +01:00
}
PieceSafari::~PieceSafari() {}
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:
exit(EXIT_FAILURE);
}
}