|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One evolution edge of a species: how it evolves (and de-evolves). More...
#include <pokemon.h>
Public Member Functions | |
| PokemonDBEntryEvolution () | |
| Empty edge. | |
| PokemonDBEntryEvolution (QJsonValue &data, PokemonDBEntry *parent) | |
Build from JSON under parent. | |
| void | deepLink (PokemonDBEntry *deEvolution) |
Resolve target/item; set deEvolution back-link. | |
Public Attributes | |
| QString | toName |
| Name of the species this evolves into. | |
| bool | trade = false |
| Evolves on trade. | |
| QString | item |
| Evolution item, if any. | |
| std::optional< var8 > | level |
| Evolution level, if level-based. | |
| PokemonDBEntry * | toDeEvolution = nullptr |
| Resolved pre-evolution. | |
| PokemonDBEntry * | toEvolution = nullptr |
| Resolved evolved species. | |
| ItemDBEntry * | toItem = nullptr |
| Resolved evolution item. | |
| PokemonDBEntry * | parent = nullptr |
| Owning species. | |
One evolution edge of a species: how it evolves (and de-evolves).
Sub-entry of PokemonDBEntry. Records the target (toName) and the trigger (level, trade, or item). deepLink() resolves the forward (toEvolution), backward (toDeEvolution), and item links. See db.md.
| PokemonDBEntryEvolution::PokemonDBEntryEvolution | ( | ) |
Empty edge.
Definition at line 41 of file pokemon.cpp.
| PokemonDBEntryEvolution::PokemonDBEntryEvolution | ( | QJsonValue & | data, |
| PokemonDBEntry * | parent ) |
| void PokemonDBEntryEvolution::deepLink | ( | PokemonDBEntry * | deEvolution | ) |
Resolve target/item; set deEvolution back-link.
Definition at line 52 of file pokemon.cpp.
References ItemsDB::getIndAt(), PokemonDB::getIndAt(), ItemsDB::inst(), PokemonDB::inst(), item, toDeEvolution, toEvolution, toItem, and toName.
| QString PokemonDBEntryEvolution::item |
Evolution item, if any.
Definition at line 59 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntryEvolution().
| std::optional<var8> PokemonDBEntryEvolution::level |
Evolution level, if level-based.
Definition at line 60 of file pokemon.h.
Referenced by PokemonDBEntryEvolution().
| PokemonDBEntry* PokemonDBEntryEvolution::parent = nullptr |
| PokemonDBEntry* PokemonDBEntryEvolution::toDeEvolution = nullptr |
| PokemonDBEntry* PokemonDBEntryEvolution::toEvolution = nullptr |
| ItemDBEntry* PokemonDBEntryEvolution::toItem = nullptr |
| QString PokemonDBEntryEvolution::toName |
Name of the species this evolves into.
Definition at line 57 of file pokemon.h.
Referenced by deepLink(), and PokemonDBEntryEvolution().
| bool PokemonDBEntryEvolution::trade = false |