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:
parent
fec0829c86
commit
2159385bb6
2 changed files with 49 additions and 23 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue