|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One real-world event-distribution Pokemon preset. More...
#include <eventpokemondbentry.h>
Public Member Functions | |
| QString | getTitle () const |
| < Distribution title. | |
| QString | getDesc () const |
| QString | getPokemon () const |
| QVector< QString > | getOtName () const |
| OT-name options. | |
| QString | getRegion () const |
| QVector< QString > | getMoves () const |
| Move names the mon comes with. | |
| PokemonDBEntry * | getToPokemon () const |
| int | getLevel () const |
| int | getOtId () const |
| int | getDvAtk () const |
| int | getDvDef () const |
| int | getDvSpd () const |
| int | getDvSp () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| void | qmlRegister () const |
| Register with QML. | |
| EventPokemonDBEntry () | |
| Empty entry (built by EventPokemonDB). | |
| EventPokemonDBEntry (const QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the species link. | |
Protected Attributes | |
| QString | title = "" |
| Backing field (read via getTitle()). | |
| QString | desc = "" |
| Backing field (read via getDesc()). | |
| QString | pokemon = "" |
| Backing field (read via getPokemon()). | |
| QVector< QString > | otName |
| OT-name options (read via getOtName()). | |
| QString | region = "" |
| Backing field (read via getRegion()). | |
| QVector< QString > | moves |
| Move names (read via getMoves()). | |
| int | level = -1 |
| Backing field (read via getLevel()). | |
| int | otId = -1 |
| Backing field (read via getOtId()). | |
| int | dvAtk = -1 |
| Backing field (read via getDvAtk()). | |
| int | dvDef = -1 |
| Backing field (read via getDvDef()). | |
| int | dvSpd = -1 |
| Backing field (read via getDvSpd()). | |
| int | dvSp = -1 |
| Backing field (read via getDvSp()). | |
| PokemonDBEntry * | toPokemon = nullptr |
| Resolved species (deepLink). | |
Friends | |
| class | EventPokemonDB |
| Owning DB constructs/populates entries. | |
One real-world event-distribution Pokemon preset.
QObject-getter style DB entry. Describes a distribution (title / desc / region) and the exact mon it gives – species, level, OT id, the four DVs, OT name options, and moves. deepLink() resolves toPokemon. See db.md.
Definition at line 37 of file eventpokemondbentry.h.
|
protected |
Empty entry (built by EventPokemonDB).
Definition at line 37 of file eventpokemondbentry.cpp.
References qmlRegister().
|
protected |
|
protected |
Resolve the species link.
Definition at line 99 of file eventpokemondbentry.cpp.
References PokemonDB::getIndAt(), PokemonDB::inst(), pokemon, and toPokemon.
| QString EventPokemonDBEntry::getDesc | ( | ) | const |
| int EventPokemonDBEntry::getDvAtk | ( | ) | const |
Definition at line 142 of file eventpokemondbentry.cpp.
References dvAtk.
| int EventPokemonDBEntry::getDvDef | ( | ) | const |
Definition at line 137 of file eventpokemondbentry.cpp.
References dvDef.
| int EventPokemonDBEntry::getDvSp | ( | ) | const |
| int EventPokemonDBEntry::getDvSpd | ( | ) | const |
Definition at line 132 of file eventpokemondbentry.cpp.
References dvSpd.
| int EventPokemonDBEntry::getLevel | ( | ) | const |
Definition at line 152 of file eventpokemondbentry.cpp.
References level.
| QVector< QString > EventPokemonDBEntry::getMoves | ( | ) | const |
Move names the mon comes with.
Definition at line 157 of file eventpokemondbentry.cpp.
References moves.
| int EventPokemonDBEntry::getOtId | ( | ) | const |
| QVector< QString > EventPokemonDBEntry::getOtName | ( | ) | const |
| QString EventPokemonDBEntry::getPokemon | ( | ) | const |
Definition at line 177 of file eventpokemondbentry.cpp.
References pokemon.
| QString EventPokemonDBEntry::getRegion | ( | ) | const |
Definition at line 162 of file eventpokemondbentry.cpp.
References region.
| QString EventPokemonDBEntry::getTitle | ( | ) | const |
< Distribution title.
Distribution description. Species name. Region it was distributed in. Resolved species. Original-trainer id. Attack DV. Defense DV. Speed DV. Special DV. Level.
Definition at line 187 of file eventpokemondbentry.cpp.
References title.
| PokemonDBEntry * EventPokemonDBEntry::getToPokemon | ( | ) | const |
Definition at line 147 of file eventpokemondbentry.cpp.
References toPokemon.
| void EventPokemonDBEntry::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 117 of file eventpokemondbentry.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 122 of file eventpokemondbentry.cpp.
Referenced by EventPokemonDBEntry(), and EventPokemonDBEntry().
|
friend |
Owning DB constructs/populates entries.
Definition at line 91 of file eventpokemondbentry.h.
References EventPokemonDB.
Referenced by EventPokemonDB.
|
protected |
Backing field (read via getDesc()).
Definition at line 78 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getDesc().
|
protected |
Backing field (read via getDvAtk()).
Definition at line 85 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getDvAtk().
|
protected |
Backing field (read via getDvDef()).
Definition at line 86 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getDvDef().
|
protected |
Backing field (read via getDvSp()).
Definition at line 88 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getDvSp().
|
protected |
Backing field (read via getDvSpd()).
Definition at line 87 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getDvSpd().
|
protected |
Backing field (read via getLevel()).
Definition at line 83 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getLevel().
|
protected |
Move names (read via getMoves()).
Definition at line 82 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getMoves().
|
protected |
Backing field (read via getOtId()).
Definition at line 84 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getOtId().
|
protected |
OT-name options (read via getOtName()).
Definition at line 80 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getOtName().
|
protected |
Backing field (read via getPokemon()).
Definition at line 79 of file eventpokemondbentry.h.
Referenced by deepLink(), EventPokemonDBEntry(), and getPokemon().
|
protected |
Backing field (read via getRegion()).
Definition at line 81 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getRegion().
|
protected |
Backing field (read via getTitle()).
Definition at line 77 of file eventpokemondbentry.h.
Referenced by EventPokemonDBEntry(), and getTitle().
|
protected |
Resolved species (deepLink).
Definition at line 89 of file eventpokemondbentry.h.
Referenced by deepLink(), and getToPokemon().