const everywhere + légèrement changer format fichiers

This commit is contained in:
2025-03-01 22:21:43 +01:00
parent 8088894073
commit f525c00662
15 changed files with 151 additions and 113 deletions

View File

@@ -11,7 +11,7 @@ Menu::Menu() {
this->boardWidth = 10;
}
Game Menu::startGame(Gamemode gamemode) {
Game Menu::startGame(Gamemode gamemode) const {
return Game(gamemode, this->playerControls, this->boardWidth, this->boardHeight, std::make_shared<PiecesList>(this->piecesList));
}
@@ -29,11 +29,11 @@ bool Menu::setBoardHeight(int height) {
return true;
}
int Menu::getBoardWidth() {
int Menu::getBoardWidth() const {
return this->boardWidth;
}
int Menu::getBoardHeight() {
int Menu::getBoardHeight() const {
return this->boardHeight;
}