1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-31 00:12:44 +00:00
serenity/Userland/Games/2048/GameSizeDialog.h
Brian Gianforcaro 1682f0b760 Everything: Move to SPDX license identifiers in all files.
SPDX License Identifiers are a more compact / standardized
way of representing file license information.

See: https://spdx.dev/resources/use/#identifiers

This was done with the `ambr` search and replace tool.

 ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00

25 lines
575 B
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
#include <LibGUI/Dialog.h>
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 temporary() const { return m_temporary; }
private:
size_t m_board_size { 4 };
size_t m_target_tile_power { 11 };
bool m_temporary { true };
};