1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:17:44 +00:00

LibCards+Games: Make CardGame responsible for managing CardStacks

Just moving some code around really.
This commit is contained in:
Sam Atkins 2022-09-28 12:13:00 +01:00 committed by Sam Atkins
parent 46299f3853
commit 6ef0504a42
6 changed files with 75 additions and 73 deletions

View file

@ -76,11 +76,6 @@ private:
void detect_victory();
void move_focused_cards(CardStack& stack);
ALWAYS_INLINE CardStack& stack(StackLocation location)
{
return m_stacks[location];
}
void paint_event(GUI::PaintEvent&) override;
void mousedown_event(GUI::MouseEvent&) override;
void mouseup_event(GUI::MouseEvent&) override;
@ -91,7 +86,6 @@ private:
NonnullRefPtrVector<Card> m_focused_cards;
NonnullRefPtrVector<Card> m_new_deck;
NonnullRefPtrVector<CardStack> m_stacks;
CardStack* m_focused_stack { nullptr };
Gfx::IntPoint m_mouse_down_location;