1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:47:44 +00:00

Solitaire: Migrate to CardGame

This commit is contained in:
Sam Atkins 2022-08-20 14:17:37 +01:00 committed by Andreas Kling
parent c5b7ad6004
commit f9f25271b3
4 changed files with 10 additions and 10 deletions

View file

@ -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;