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:
parent
6da481205b
commit
4e3a1f2da9
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue