blob: 7275815c463fa19c553c49ef7a51b88ef0f8779d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Player.h"
#include <AK/Function.h>
#include <LibGUI/Frame.h>
namespace Hearts {
class ScoreCard : public GUI::Frame {
C_OBJECT(ScoreCard);
Gfx::IntSize recommended_size();
private:
ScoreCard(Player (&players)[4], bool game_over);
virtual void paint_event(GUI::PaintEvent&) override;
static constexpr int column_width = 70;
static constexpr int cell_padding = 5;
Player (&m_players)[4];
bool m_game_over { false };
};
}
|