Go to the documentation of this file.
13 #ifndef TREASURE_WRAPPER_H
14 #define TREASURE_WRAPPER_H
19 #include <QStringList>
59 virtual
bool canDrop(const QMimeData *
data,
int row) const override;
60 virtual
void drop(const QMimeData *
data,
int row) override;
62 virtual
void fillMenu(QMenu *menu) override;
66 uint8_t
magic() const;
68 uint16_t
nrof() const;
98 virtual QString
displayName()
const override {
return myIsYes ?
"Yes" :
"No"; }
106 virtual void fillMenu(QMenu *menu)
override;
void setIsYes(bool isYes)
virtual bool canDrop(const QMimeData *data, int row) const override
void addChild(treasurelist *tl, archetype *arch)
void setList(const treasurelist *list)
qint8 list_magic_adjustment
void setMagic(uint8_t magic)
virtual void removeChild(AssetWrapper *) override
virtual void removeChild(AssetWrapper *)
virtual QIcon displayIcon() const override
void setChance(uint8_t chance)
virtual void removeChild(AssetWrapper *child) override
virtual QIcon displayIcon() const override
virtual void drop(const QMimeData *data, int row) override
void doRemoveChild(TreasureYesNo **tr, treasure **ti, int index)
virtual int childrenCount() const override
static QIcon getTreasureYesIcon()
virtual int childIndex(AssetWrapper *child) override
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
virtual QString displayName() const override
TreasureYesNo * myNextYes
virtual AssetWrapper * child(int child) override
void setArtifact(const QString &art)
virtual AssetWrapper * child(int child) override
virtual int childrenCount() const override
void setListMagicAdjustment(qint8 value)
void setListMagicValue(quint8 value)
virtual int childIndex(AssetWrapper *child) override
void setArch(const archetype *arch)
virtual void fillMenu(QMenu *menu) override
quint8 listMagicValue() const
void setNrof(uint16_t nrof)
qint8 listMagicAdjustment() const
virtual QString displayName() const override
static QIcon getTreasureNoIcon()
void doAddChild(TreasureYesNo **my, treasure **ti, bool isYes, int index, treasurelist *tl, archetype *arch)