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

Spider: Migrate to CardGame

This commit is contained in:
Sam Atkins 2022-08-20 14:18:12 +01:00 committed by Andreas Kling
parent c709dc154f
commit 163a74e3e2
4 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,7 @@
/*
* Copyright (c) 2021, Jamie Mansfield <jmansfield@cadixdev.org>
* Copyright (c) 2022, the SerenityOS developers.
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -8,8 +9,8 @@
#pragma once
#include <AK/Array.h>
#include <LibCards/CardGame.h>
#include <LibCards/CardStack.h>
#include <LibGUI/Frame.h>
using Cards::Card;
using Cards::CardStack;
@ -28,7 +29,7 @@ enum class GameOverReason {
Quit,
};
class Game final : public GUI::Frame {
class Game final : public Cards::CardGame {
C_OBJECT(Game)
public:
static constexpr int width = 10 + 10 * Card::width + 90 + 10;