mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:17:45 +00:00
LibCards+Games: Make CardGame responsible for managing CardStacks
Just moving some code around really.
This commit is contained in:
parent
46299f3853
commit
6ef0504a42
6 changed files with 75 additions and 73 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue