refactor method for positioning cards in ZoneViewZone (#5203)

* refactor out method for positioning cards in zone view

* rename some variables

* use max/min

* some small formatting stuff
This commit is contained in:
RickyRister 2024-11-28 11:59:31 -08:00 committed by GitHub
parent 24b5dab456
commit 37bb1367db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 63 additions and 42 deletions

View file

@ -35,6 +35,14 @@ private:
bool sortByName, sortByType;
bool pileView;
struct GridSize
{
int rows;
int cols;
};
GridSize positionCardsForDisplay(CardList &cards, bool groupByType = false);
public:
ZoneViewZone(Player *_p,
CardZone *_origZone,