[Refactor] Move card item creation out of game logic

This commit is contained in:
Lukas Brübach 2026-10-07 10:08:54 +02:00 • committed by GitHub
parent e0d2f158e9
commit 16caae5e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 121 additions and 82 deletions

View file

@ -35,7 +35,7 @@ ZoneViewZoneLogic::ZoneViewZoneLogic(PlayerLogic *_player,
* Note that this method can end up modifying the cardIds despite returning false.
* (for example, if the card is inserted into a hidden portion of the deck while the view is reversed)
*
* Make sure to call this method once before calling addCard(), so that you skip creating a new CardItem and calling
* Make sure to call this method once before calling addCard(), so that you skip creating the card and calling
* addCard() if it's not required.
*
* @param x The position to insert the card at.