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

Hearts: Move card click handler into a separate method

This commit is contained in:
Gunnar Beutner 2021-05-24 14:44:48 +02:00 committed by Andreas Kling
parent 89d38b7e94
commit fab073f33c
2 changed files with 15 additions and 8 deletions

View file

@ -59,6 +59,8 @@ private:
virtual void keydown_event(GUI::KeyEvent&) override;
virtual void timer_event(Core::TimerEvent&) override;
void card_clicked(size_t card_index, Card& card);
Player m_players[4];
NonnullRefPtrVector<Card> m_trick;
Player* m_leading_player { nullptr };