mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:17:46 +00:00
Solitaire: Combine duplicate tab/double-click logic
The two paths did the same thing, in two different ways. Now they are the same. :^) Can't quite put all of the logic into attempt_to_move_card_to_foundations() because the double-click has to check that you clicked on the top card.
This commit is contained in:
parent
adedb3de2a
commit
f0dcf79116
2 changed files with 42 additions and 52 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Till Mayer <till.mayer@web.de>
|
||||
* Copyright (c) 2021, Sam Atkins <atkinssj@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -163,7 +164,8 @@ private:
|
|||
void move_card(CardStack& from, CardStack& to);
|
||||
void draw_cards();
|
||||
void pop_waste_to_play_stack();
|
||||
void auto_move_eligible_cards_to_stacks();
|
||||
bool attempt_to_move_card_to_foundations(CardStack& from);
|
||||
void auto_move_eligible_cards_to_foundations();
|
||||
void start_timer_if_necessary();
|
||||
void start_game_over_animation();
|
||||
void stop_game_over_animation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue