1#ifndef COCKATRICE_SIDEBOARD_PLAN_H
2#define COCKATRICE_SIDEBOARD_PLAN_H
5#include <libcockatrice/protocol/pb/move_card_to_zone.pb.h>
39 explicit SideboardPlan(
const QString &_name =
"",
const QList<MoveCard_ToZone> &_moveList = {});
52 void write(QXmlStreamWriter *xml)
const;
61 [[nodiscard]]
const QList<MoveCard_ToZone> &
getMoveList()
const
67 void setMoveList(
const QList<MoveCard_ToZone> &_moveList);
const QList< MoveCard_ToZone > & getMoveList() const
Definition sideboard_plan.h:61
QString name
Human-readable name of this plan.
Definition sideboard_plan.h:30
QList< MoveCard_ToZone > moveList
List of move instructions for this plan.
Definition sideboard_plan.h:31
void setMoveList(const QList< MoveCard_ToZone > &_moveList)
Replace the move list with a new one.
Definition sideboard_plan.cpp:10
void write(QXmlStreamWriter *xml) const
Write this SideboardPlan to XML.
Definition sideboard_plan.cpp:47
SideboardPlan(const QString &_name="", const QList< MoveCard_ToZone > &_moveList={})
Construct a new SideboardPlan.
Definition sideboard_plan.cpp:5
bool readElement(QXmlStreamReader *xml)
Read a SideboardPlan from an XML stream.
Definition sideboard_plan.cpp:15
QString getName() const
Definition sideboard_plan.h:55