103 void qmlProtect(
const QQmlEngine*
const engine)
const;
The items database – every item (with prices), keyed by name.
Import/export macro for the db library, plus the central list of DB entry pointer types declared opaq...
#define DB_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.
One Game Corner prize: a Pokemon or item, its coin price, and level.
int sellPriceMoney() const
QString info
Backing field (read via getInfo()); optional "info" in items.json.
int sellPriceCoins() const
MapDBEntrySpriteItem * getToMapSpriteItemAt(int ind) const
Map-sprite-item ind (for QML).
void deepLink()
Resolve the move/Game-Corner links.
GameCornerDBEntry * getToGameCorner() const
QString readable
Backing field (read via getReadable()).
QString name
Backing field (read via getName()).
MoveDBEntry * toMove
Resolved taught move (deepLink).
friend struct PokemonDBEntry
bool isGameCornerExclusive() const
void qmlRegister() const
Register with QML.
int getToMapSpriteItemSize() const
int getToTeachPokemonSize() const
QString getReadable() const
int tm
Backing field (read via getTm()).
int buyPriceMoney() const
PokemonDBEntry * getToTeachPokemonAt(int ind) const
Taught Pokemon ind (for QML).
int getToEvolvePokemonSize() const
GameCornerDBEntry * toGameCorner
Resolved Game Corner entry (deepLink).
int buyPriceCoins() const
const QVector< PokemonDBEntryEvolution * > getToEvolvePokemon() const
Evolutions triggered by this item.
QVector< PokemonDBEntryEvolution * > toEvolvePokemon
Evolutions using this (back-ref).
bool glitch
Backing field (read via getGlitch()).
QVector< MapDBEntrySpriteItem * > toMapSpriteItem
Map sprites dropping this (back-ref).
QVector< PokemonDBEntry * > toTeachPokemon
Pokemon this teaches (back-ref).
ItemDBEntry()
Empty entry (built by ItemsDB).
QString getName() const
< Internal item name.
PokemonDBEntryEvolution * getToEvolvePokemonAt(int ind) const
Evolution ind (for QML).
int hm
Backing field (read via getHm()).
const QVector< PokemonDBEntry * > getToTeachPokemon() const
Pokemon this TM/HM teaches.
int ind
Backing field (read via getInd()).
bool once
Backing field (read via getOnce()).
MoveDBEntry * getToMove() const
int price
Backing field (read via getPrice()).
friend class ItemsDB
Owning DB constructs/populates entries.
friend struct MapDBEntrySpriteItem
Writes toMapSpriteItem.
const QVector< MapDBEntrySpriteItem * > getToMapSpriteItem() const
Map sprites that drop this item.
friend struct PokemonDBEntryEvolution
friend struct GameCornerDBEntry
void qmlProtect(const QQmlEngine *const engine) const
Pin to C++ ownership.
A map sprite that is a pick-up item (type ITEM).
One move's static data (type, power, accuracy, PP, TM/HM), with links.
One evolution edge of a species: how it evolves (and de-evolves).
One species' complete static data – the richest entry in the db layer.