1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

Solitaire: Add keys for drawing and moving cards to foundation stacks

Also shifts logic of starting game length timer into function
`start_timer_if_necessary`, so it can be called from original
mouse event handler and new `auto_move_eligible_cards_to_stacks`
This commit is contained in:
Matthew B. Jones 2021-06-03 01:43:28 -06:00 committed by GitHub
parent e7cfa9bf8e
commit ecaae2d10f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 139 additions and 72 deletions

View file

@ -160,6 +160,10 @@ private:
void remember_flip_for_undo(Card& card);
void update_score(int to_add);
void move_card(CardStack& from, CardStack& to);
void draw_cards();
void pop_waste_to_play_stack();
void auto_move_eligible_cards_to_stacks();
void start_timer_if_necessary();
void start_game_over_animation();
void stop_game_over_animation();
void create_new_animation_card();