variable max polyo size

This commit is contained in:
2025-03-31 14:12:36 +02:00
parent 6bff555cbc
commit 1a95765877
9 changed files with 87 additions and 35 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "../Core/Menu.h"
#include "StartUpMenu.h"
#include "Keybinds.h"
#include "PiecesType.h"
@@ -10,17 +11,11 @@
static const int MAXIMUM_BOARD_WIDTH = 40;
static const int MAXIMUM_BOARD_HEIGHT = 40;
//#define __JMINOS_RELEASE__
#ifdef __JMINOS_RELEASE__
static const int MAXIMUM_PIECES_SIZE = 15;
#else
static const int MAXIMUM_PIECES_SIZE = 10;
#endif
class Settings {
private:
Menu menu;
int maximumPiecesSize;
std::vector<Keybinds> keybinds;
int chosenKeybinds;
int windowSizeMode;
@@ -30,7 +25,7 @@ class Settings {
std::vector<int> distributions;
public:
Settings();
Settings(int maximumPiecesSize);
void loadSettingsFromFile();
@@ -70,6 +65,8 @@ class Settings {
Keybinds& getKeybinds();
int getMaximumPiecesSize() const;
int getKeybindsLayout() const;
Gamemode getGamemode() const;