summaryrefslogtreecommitdiff
path: root/Userland/Games/Chess/PromotionDialog.h
blob: a3d93b109288a27eda103b148b7c7b132b3f4e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2020, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include "ChessWidget.h"
#include <LibGUI/Dialog.h>

class PromotionDialog final : public GUI::Dialog {
    C_OBJECT(PromotionDialog)
public:
    Chess::Type selected_piece() const { return m_selected_piece; }

private:
    explicit PromotionDialog(ChessWidget& chess_widget);
    virtual void event(Core::Event&) override;

    Chess::Type m_selected_piece;
};