Cockatrice/libcockatrice_deck_list/libcockatrice/deck_list
BruebachL b13c682a7a
[DeckList] Make deck tree card traversal recursive (#7175)
* [DeckList] Make deck tree card traversal recursive

getCardNodes and forEachCard now descend into nested zones instead of
assuming a flat main/side/token layout. For today's flat trees this is
behavior-preserving; it also removes two latent crashes (unchecked
dynamic_cast dereference, null card nodes passed to forEachCard
callers). Nested zones are introduced by later custom-zones units.

Took 3 minutes


Took 7 seconds

Took 9 seconds

* Fix rebase mistake.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-08-24 18:44:05 +02:00
..
tree [DeckList] Add maybeboard zone constant and skip it in exports (#7174) 2026-08-24 18:04:22 +02:00
deck_list.cpp [DeckList] Add maybeboard zone constant and skip it in exports (#7174) 2026-08-24 18:04:22 +02:00
deck_list.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
deck_list_history_manager.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
deck_list_history_manager.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
deck_list_memento.h [Fix-Warnings] Mark const getters as [[nodiscard]] (#6365) 2025-11-28 21:38:54 +01:00
deck_list_node_tree.cpp [DeckList] Make deck tree card traversal recursive (#7175) 2026-08-24 18:44:05 +02:00
deck_list_node_tree.h [DeckList] Make deck tree card traversal recursive (#7175) 2026-08-24 18:44:05 +02:00
playmat_resolver.cpp [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
playmat_resolver.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
sideboard_plan.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
sideboard_plan.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00