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

Spider: Add functionality to automatically move cards to valid stacks

This commit adds the possibility to use the secondary mouse button to
let the game move the selected card(s) to the next valid stack.
This commit is contained in:
Neolyum 2022-01-06 19:04:19 +01:00 committed by Linus Groh
parent fec0829c86
commit 2159385bb6
2 changed files with 49 additions and 23 deletions

View file

@ -72,6 +72,7 @@ private:
void ensure_top_card_is_visible(NonnullRefPtr<CardStack> stack);
void detect_full_stacks();
void detect_victory();
void move_focused_cards(CardStack& stack);
ALWAYS_INLINE CardStack& stack(StackLocation location)
{