refactoring

This commit is contained in:
2025-03-24 22:39:16 +01:00
parent 321271b748
commit c168cd68d7
18 changed files with 256 additions and 115 deletions

View File

@@ -23,9 +23,9 @@ class Settings {
Menu menu;
std::vector<Keybinds> keybinds;
int chosenKeybinds;
Gamemode gamemode;
int windowSizeMode;
int masterVolume;
Gamemode gamemode;
std::vector<std::pair<PiecesType, int>> selectedPieces;
public:
@@ -41,16 +41,18 @@ class Settings {
bool canModifyCurrentKeybinds() const;
void setGamemode(Gamemode gamemode);
bool widenWindow();
bool shortenWindow();
void changeVideoMode(sf::RenderWindow& window) const;
bool raiseMasterVolume();
bool lowerMasterVolume();
void setGamemode(Gamemode gamemode);
void selectPieces(PiecesType type, int value);
void unselectPieces(int index);
@@ -67,7 +69,5 @@ class Settings {
int getMasterVolume() const;
const sf::VideoMode getVideoMode() const;
const std::vector<std::pair<PiecesType, int>>& getSelectedPieces() const;
};