Represents a predefined sideboarding strategy for a deck. More...
#include <deck_list.h>
Public Member Functions | |
| SideboardPlan (const QString &_name=QString(), const QList< MoveCard_ToZone > &_moveList=QList< MoveCard_ToZone >()) | |
| Construct a new SideboardPlan. | |
| bool | readElement (QXmlStreamReader *xml) |
| Read a SideboardPlan from an XML stream. | |
| void | write (QXmlStreamWriter *xml) |
| Write this SideboardPlan to XML. | |
| QString | getName () const |
| const QList< MoveCard_ToZone > & | getMoveList () const |
| void | setMoveList (const QList< MoveCard_ToZone > &_moveList) |
| Replace the move list with a new one. | |
Private Attributes | |
| QString | name |
| Human-readable name of this plan. | |
| QList< MoveCard_ToZone > | moveList |
| List of move instructions for this plan. | |
Represents a predefined sideboarding strategy for a deck.
Sideboard plans store a named list of card movements that should be applied between the mainboard and sideboard for a specific matchup. Each movement is expressed using a MoveCard_ToZone protobuf message.
A deck can contain multiple sideboard plans (e.g., "vs Aggro", "vs Control"), each describing how to transform the main deck into its intended configuration.
|
explicit |
Construct a new SideboardPlan.
| _name | The plan name. |
| _moveList | Initial list of card move instructions. |
|
inlinenodiscard |
|
inlinenodiscard |
| bool SideboardPlan::readElement | ( | QXmlStreamReader * | xml | ) |
Read a SideboardPlan from an XML stream.
| xml | XML reader positioned at the plan element. |
| void SideboardPlan::setMoveList | ( | const QList< MoveCard_ToZone > & | _moveList | ) |
Replace the move list with a new one.
| void SideboardPlan::write | ( | QXmlStreamWriter * | xml | ) |
Write this SideboardPlan to XML.
| xml | Stream to append the serialized element to. |
|
private |
List of move instructions for this plan.
|
private |
Human-readable name of this plan.