This commit is contained in:
Mylloon 2024-01-11 23:29:54 +01:00
parent c2e4c8f968
commit 119cf9d3ba
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ class Safari : private Jeu {
// Permet de transformer une Piece en PieceSafari
PieceSafari *getPiece(const int x, const int y) const;
PieceSafari *getPiece(Piece *) const;
const PieceSafari *getPiece(Piece *) const;
// Position curseur
const Position getPosition() const override;

View file

@ -29,8 +29,8 @@ PieceSafari *Safari::getPiece(const int x, const int y) const {
return dynamic_cast<PieceSafari *>(plateau.getPiece(x, y));
}
PieceSafari *Safari::getPiece(Piece *piece) const {
return dynamic_cast<PieceSafari *>(piece);
const PieceSafari *Safari::getPiece(Piece *piece) const {
return dynamic_cast<const PieceSafari *>(piece);
}
const std::string Safari::msgChoixAnimal() const {