refactoring
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user