Go to the documentation of this file.
15 #include "../ResourcesManager.h"
55 if (tlw && tlw->totalChance() != 0) {
56 name = tr(
"%1 (%2%3%, %4 chances on %5)")
61 .arg(tlw->totalChance());
63 name = tr(
"%1 (%2%3%)")
187 for (
auto arch : archs) {
290 if (!art.isEmpty()) {
static const char * Archetype
#define FREE_AND_CLEAR_STR_IF(xyz)
void setIsYes(bool isYes)
TreasureWrapper(AssetWrapper *parent, treasure *tr, ResourcesManager *resources)
virtual bool canDrop(const QMimeData *data, int row) const override
void addChild(treasurelist *tl, archetype *arch)
virtual int childrenCount() const override
void setList(const treasurelist *list)
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
static event_registration c
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
void setMagic(uint8_t magic)
void setSpecificItem(const object *item, bool notify)
static QIcon getTreasureIcon()
virtual void removeChild(AssetWrapper *)
static QIcon getIcon(uint16_t faceNumber)
virtual AssetWrapper * child(int child) override
void setChance(uint8_t chance)
virtual void removeChild(AssetWrapper *child) override
AssetsManager * getManager()
T * find(const Key &name)
TreasureYesNo(TreasureWrapper *parent, treasure *tr, ResourcesManager *resources, bool isYes)
virtual QIcon displayIcon() const override
static const char * TreasureList
virtual void drop(const QMimeData *data, int row) override
void doRemoveChild(TreasureYesNo **tr, treasure **ti, int index)
virtual int childrenCount() const override
virtual void fillMenu(QMenu *menu) override
sstring add_string(const char *str)
void treasure_free(treasure *t)
ResourcesManager * myResources
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
treasure * wrappedItem() const
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
#define FREE_AND_CLEAR_STR(xyz)
virtual int childIndex(AssetWrapper *child) override
TreasureYesNo * myNextYes
virtual AssetWrapper * child(int child) override
treasure * get_empty_treasure(void)
void setArtifact(const QString &art)
void remove(treasure *tr)
void setListMagicAdjustment(qint8 value)
void setListMagicValue(quint8 value)
static QIcon getTreasureOneIcon()
virtual int childIndex(AssetWrapper *child) override
void setArch(const archetype *arch)
virtual ~TreasureWrapper()
void markModified(ChangeType change, int extra=0)
virtual void fillMenu(QMenu *menu) override
quint8 listMagicValue() const
void setNrof(uint16_t nrof)
qint8 listMagicAdjustment() const
virtual QString displayName() const override
AssetWrapper * displayParent() const
int8_t list_magic_adjustment
void doAddChild(TreasureYesNo **my, treasure **ti, bool isYes, int index, treasurelist *tl, archetype *arch)