|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One species' complete static data – the richest entry in the db layer. More...
#include <pokemon.h>
Public Member Functions | |
| PokemonDBEntry () | |
| Empty species. | |
| PokemonDBEntry (QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the full cross-reference web (the to* members). | |
Public Attributes | |
| QString | name |
| Internal species name (key). | |
| var8 | ind = 0 |
| Internal species index. | |
| QString | readable |
| Human-readable species name. | |
| bool | glitch = false |
| Whether this is a glitch species. | |
| QString | type1 |
| Primary type name (resolved to toType1). | |
| QString | type2 |
| Secondary type name (resolved to toType2). | |
| QVector< PokemonDBEntryMove * > | moves |
| Level-up learnset. | |
| QVector< QString > | initial |
| Moves known at capture (resolved to toInitial). | |
| QVector< var8 > | tmHm |
| TM/HM numbers it can learn. | |
| QVector< PokemonDBEntryEvolution * > | evolution |
| Evolution edges. | |
| std::optional< var8 > | pokedex |
| Pokedex number, if assigned. | |
| std::optional< var8 > | growthRate |
| EXP growth-rate group. | |
| std::optional< var8 > | baseHp |
| Base HP. | |
| std::optional< var8 > | baseAttack |
| Base Attack. | |
| std::optional< var8 > | baseDefense |
| Base Defense. | |
| std::optional< var8 > | baseSpeed |
| Base Speed. | |
| std::optional< var8 > | baseSpecial |
| Base Special. | |
| std::optional< var8 > | baseExpYield |
| Base EXP yield. | |
| std::optional< var8 > | catchRate |
| Catch rate. | |
| TypeDBEntry * | toType1 = nullptr |
| Resolved primary type. | |
| TypeDBEntry * | toType2 = nullptr |
| Resolved secondary type. | |
| PokemonDBEntry * | toDeEvolution = nullptr |
| Resolved pre-evolution. | |
| QVector< MoveDBEntry * > | toInitial |
| Resolved capture moves. | |
| QVector< MoveDBEntry * > | toTmHmMove |
| Resolved TM/HM moves. | |
| QVector< ItemDBEntry * > | toTmHmItem |
| Resolved TM/HM items. | |
| QVector< EventPokemonDBEntry * > | toEventMons |
| Event distributions of this species. | |
| MapDBEntrySpritePokemon * | toMapSpritePokemon = nullptr |
| On-map static-Pokemon sprite, if any. | |
| QVector< MapDBEntryWildMon * > | toWildMonMaps |
| Maps where it appears wild. | |
| QVector< TradeDBEntry * > | toTrades |
| In-game trades giving/getting it. | |
| QVector< GameCornerDBEntry * > | toGameCorner |
| Game Corner prizes of this species. | |
One species' complete static data – the richest entry in the db layer.
Holds the base stats, types, learnset (moves / initial / tmHm), and evolution edges, all loaded from JSON. deepLink() then wires up a large web of cross-references (the to* members): types, learnable moves, TM/HM moves+items, plus back-references to where the species appears – events, on-map sprites, wild-encounter maps, trades, and Game Corner prizes. The std::optional base-stat fields are absent for entries that don't define them (e.g. glitch mons).
| PokemonDBEntry::PokemonDBEntry | ( | ) |
Empty species.
Definition at line 94 of file pokemon.cpp.
| PokemonDBEntry::PokemonDBEntry | ( | QJsonValue & | data | ) |
Build from a JSON value.
Definition at line 95 of file pokemon.cpp.
References baseAttack, baseDefense, baseExpYield, baseHp, baseSpecial, baseSpeed, catchRate, evolution, glitch, growthRate, ind, initial, moves, name, pokedex, readable, tmHm, type1, and type2.
| void PokemonDBEntry::deepLink | ( | ) |
Resolve the full cross-reference web (the to* members).
Definition at line 135 of file pokemon.cpp.
References evolution, ItemsDB::getIndAt(), MovesDB::getIndAt(), TypesDB::getIndAt(), initial, ItemsDB::inst(), MovesDB::inst(), TypesDB::inst(), moves, tmHm, toInitial, toTmHmItem, toTmHmMove, toType1, toType2, type1, and type2.
| std::optional<var8> PokemonDBEntry::baseAttack |
| std::optional<var8> PokemonDBEntry::baseDefense |
| std::optional<var8> PokemonDBEntry::baseExpYield |
| std::optional<var8> PokemonDBEntry::baseHp |
| std::optional<var8> PokemonDBEntry::baseSpecial |
| std::optional<var8> PokemonDBEntry::baseSpeed |
| std::optional<var8> PokemonDBEntry::catchRate |
| QVector<PokemonDBEntryEvolution*> PokemonDBEntry::evolution |
Evolution edges.
Definition at line 113 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().
| bool PokemonDBEntry::glitch = false |
Whether this is a glitch species.
Definition at line 106 of file pokemon.h.
Referenced by PokemonDBEntry().
| std::optional<var8> PokemonDBEntry::growthRate |
| var8 PokemonDBEntry::ind = 0 |
Internal species index.
Definition at line 104 of file pokemon.h.
Referenced by PokemonBox::newPokemon(), PokemonDBEntry(), Rival::randomize(), and PlayerBasics::randomizeStarter().
| QVector<QString> PokemonDBEntry::initial |
Moves known at capture (resolved to toInitial).
Definition at line 111 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().
| QVector<PokemonDBEntryMove*> PokemonDBEntry::moves |
Level-up learnset.
Definition at line 110 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().
| QString PokemonDBEntry::name |
Internal species name (key).
Definition at line 103 of file pokemon.h.
Referenced by PokemonBox::changeName(), and PokemonDBEntry().
| std::optional<var8> PokemonDBEntry::pokedex |
Pokedex number, if assigned.
Definition at line 115 of file pokemon.h.
Referenced by MoveSelectModel::monFromBox(), and PokemonDBEntry().
| QString PokemonDBEntry::readable |
Human-readable species name.
Definition at line 105 of file pokemon.h.
Referenced by PokemonDBEntry().
| QVector<var8> PokemonDBEntry::tmHm |
TM/HM numbers it can learn.
Definition at line 112 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().
| PokemonDBEntry* PokemonDBEntry::toDeEvolution = nullptr |
| QVector<EventPokemonDBEntry*> PokemonDBEntry::toEventMons |
| QVector<GameCornerDBEntry*> PokemonDBEntry::toGameCorner |
| QVector<MoveDBEntry*> PokemonDBEntry::toInitial |
| MapDBEntrySpritePokemon* PokemonDBEntry::toMapSpritePokemon = nullptr |
| QVector<ItemDBEntry*> PokemonDBEntry::toTmHmItem |
| QVector<MoveDBEntry*> PokemonDBEntry::toTmHmMove |
| QVector<TradeDBEntry*> PokemonDBEntry::toTrades |
| TypeDBEntry* PokemonDBEntry::toType1 = nullptr |
| TypeDBEntry* PokemonDBEntry::toType2 = nullptr |
| QVector<MapDBEntryWildMon*> PokemonDBEntry::toWildMonMaps |
| QString PokemonDBEntry::type1 |
Primary type name (resolved to toType1).
Definition at line 107 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().
| QString PokemonDBEntry::type2 |
Secondary type name (resolved to toType2).
Definition at line 108 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntry().