const!
This commit is contained in:
parent
c2e4c8f968
commit
119cf9d3ba
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Reference in a new issue