Cockatrice/cockatrice
DawnFire42 6943d64cdf
refactor: extract shared card insertion algorithm from hand/stack zones
Hand and stack zones had near-identical addCardImpl() implementations, differing only in whether resetState() preserves annotations.
Extract the shared pattern into a template function (CardZoneAlgorithms::addCardToList) to eliminate duplication and enable isolated testing without Qt dependencies.
Pile, table, and zone-view logic are intentionally excluded — their post-add behavior (signals, coordinate placement, hidden cards) is materially different.
2026-03-14 21:30:24 -04:00
..
resources [Search] Fix OR usage in examples (#6628) 2026-02-24 01:34:23 +01:00
sounds
src refactor: extract shared card insertion algorithm from hand/stack zones 2026-03-14 21:30:24 -04:00
themes
translations Updates for project Cockatrice and language en_US (#6543) 2026-01-25 16:51:03 -05:00
.qdevelop
CMakeLists.txt Add local game options (#6669) 2026-03-12 14:30:01 -07:00
cockatrice_en@source.ts Update translation source strings (#6465) 2026-01-06 19:35:53 +01:00
cockatrice.desktop
cockatrice.qrc [CardDatabaseDisplay] Reduce width by using icons (#6603) 2026-02-22 20:54:58 -08:00
cockatrice.rc