Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
abstract_deck_list_node.h File Reference

Defines the AbstractDecklistNode base class used as the foundation for all nodes in the deck list tree (zones, groups, and cards). More...

#include <QtCore/QXmlStreamWriter>
Include dependency graph for abstract_deck_list_node.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AbstractDecklistNode
 Base class for all nodes in the deck list tree. More...

Enumerations

enum  DeckSortMethod { ByNumber , ByName , Default }
 Defines the different sort strategies a node may use to order its children. More...

Detailed Description

Defines the AbstractDecklistNode base class used as the foundation for all nodes in the deck list tree (zones, groups, and cards).

The deck list is modeled as a tree:

  • The invisible root node is managed by DeckListModel.
  • Top-level children are zones (e.g. Mainboard, Sideboard).
  • Zones contain grouping nodes (e.g. by type, color, or mana cost).
  • Grouping nodes contain card nodes.

This abstract base class provides the interface and shared functionality for all node types. Concrete subclasses (InnerDecklistNode, DecklistCardNode, DecklistModelCardNode, etc.) implement the specifics.