summaryrefslogtreecommitdiff
path: root/Userland/Games/2048/GameSizeDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/2048/GameSizeDialog.h')
-rw-r--r--Userland/Games/2048/GameSizeDialog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Games/2048/GameSizeDialog.h b/Userland/Games/2048/GameSizeDialog.h
index 6a3d982634..a3a604bde5 100644
--- a/Userland/Games/2048/GameSizeDialog.h
+++ b/Userland/Games/2048/GameSizeDialog.h
@@ -12,16 +12,16 @@
class GameSizeDialog : public GUI::Dialog {
C_OBJECT(GameSizeDialog)
public:
- GameSizeDialog(GUI::Window* parent);
-
size_t board_size() const { return m_board_size; }
u32 target_tile() const { return 1u << m_target_tile_power; }
bool evil_ai() const { return m_evil_ai; }
bool temporary() const { return m_temporary; }
private:
- size_t m_board_size { 4 };
- size_t m_target_tile_power { 11 };
- bool m_evil_ai { false };
+ GameSizeDialog(GUI::Window* parent, size_t board_size, size_t target_tile, bool evil_ai);
+
+ size_t m_board_size;
+ size_t m_target_tile_power;
+ bool m_evil_ai;
bool m_temporary { true };
};