mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
Solitaire: Migrate to CardGame
This commit is contained in:
parent
c5b7ad6004
commit
f9f25271b3
4 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Till Mayer <till.mayer@web.de>
|
||||
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
|
@ -9,9 +9,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Array.h>
|
||||
#include <LibCards/CardGame.h>
|
||||
#include <LibCards/CardStack.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
|
||||
using Cards::Card;
|
||||
using Cards::CardStack;
|
||||
|
@ -29,7 +28,7 @@ enum class GameOverReason {
|
|||
NewGame,
|
||||
};
|
||||
|
||||
class Game final : public GUI::Frame {
|
||||
class Game final : public Cards::CardGame {
|
||||
C_OBJECT(Game)
|
||||
public:
|
||||
static constexpr int width = 640;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue