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

Hearts: Move hand sorting functionality into a method

This commit is contained in:
Gunnar Beutner 2021-05-24 10:27:05 +02:00 committed by Andreas Kling
parent 6da481205b
commit 4e3a1f2da9
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,8 @@ public:
size_t pick_last_card();
bool has_card_of_type(Card::Type type);
void sort_hand() { quick_sort(hand, hearts_card_less); }
Vector<RefPtr<Card>> hand;
Vector<RefPtr<Card>> cards_taken;
Gfx::IntPoint first_card_position;