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

@@ -4,6 +4,8 @@
#include "Player.h"
#include "Game.h"
static const int FRAMES_PER_SECOND = 60; // the number of frames per second, all the values in the game were choosen with this number in mind
/**
* The interface between the UI and the core of the game
@@ -25,7 +27,7 @@ class Menu {
* Starts a new game with the current settings
* @return The game that has been created
*/
Game startGame(Gamemode gamemode);
Game startGame(Gamemode gamemode) const;
/**
* Sets the width of the board, which must be greater than 0
@@ -42,12 +44,12 @@ class Menu {
/**
* @return The width of the board
*/
int getBoardWidth();
int getBoardWidth() const;
/**
* @return The height of the board
*/
int getBoardHeight();
int getBoardHeight() const;
/**
* @return A reference to the player's controls