const everywhere + légèrement changer format fichiers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user