|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One wild-encounter slot in a map's encounter table: species + level. More...
#include <mapdbentrywildmon.h>
Public Member Functions | |
| const QString | getName () const |
| < Species name. | |
| int | getLevel () const |
| PokemonDBEntry * | getToPokemon () const |
| MapDBEntry * | getParent () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MapDBEntryWildMon () | |
| Empty entry. | |
| MapDBEntryWildMon (const QJsonValue &value, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| void | deepLink () |
| Resolve the species link. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| QString | name = "" |
| Species name. | |
| int | level = 0 |
| Encounter level. | |
| PokemonDBEntry * | toPokemon = nullptr |
| Resolved species (deepLink). | |
| MapDBEntry * | parent = nullptr |
| Owning map. | |
Friends | |
| class | MapsDB |
| class | MapDBEntry |
One wild-encounter slot in a map's encounter table: species + level.
The DB counterpart to the save's AreaPokemonWild. deepLink() resolves toPokemon. A leaf of MapDBEntry (in its red/blue/water tables). See db.md.
Definition at line 35 of file mapdbentrywildmon.h.
|
protected |
|
protected |
Build from JSON under parent.
Definition at line 32 of file mapdbentrywildmon.cpp.
References level, MapDBEntry, name, parent, and qmlRegister().
|
protected |
Resolve the species link.
Definition at line 41 of file mapdbentrywildmon.cpp.
References PokemonDB::getIndAt(), PokemonDB::inst(), name, and toPokemon.
| int MapDBEntryWildMon::getLevel | ( | ) | const |
| const QString MapDBEntryWildMon::getName | ( | ) | const |
< Species name.
Encounter level. Resolved species. Owning map.
Definition at line 88 of file mapdbentrywildmon.cpp.
References name.
| MapDBEntry * MapDBEntryWildMon::getParent | ( | ) | const |
Definition at line 68 of file mapdbentrywildmon.cpp.
References MapDBEntry, and parent.
| PokemonDBEntry * MapDBEntryWildMon::getToPokemon | ( | ) | const |
Definition at line 78 of file mapdbentrywildmon.cpp.
References toPokemon.
| void MapDBEntryWildMon::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 73 of file mapdbentrywildmon.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 57 of file mapdbentrywildmon.cpp.
Referenced by MapDBEntryWildMon(), and MapDBEntryWildMon().
|
friend |
Definition at line 64 of file mapdbentrywildmon.h.
References MapDBEntry.
Referenced by getParent(), MapDBEntry, and MapDBEntryWildMon().
|
friend |
|
protected |
Encounter level.
Definition at line 58 of file mapdbentrywildmon.h.
Referenced by getLevel(), and MapDBEntryWildMon().
|
protected |
Species name.
Definition at line 57 of file mapdbentrywildmon.h.
Referenced by deepLink(), getName(), and MapDBEntryWildMon().
|
protected |
Owning map.
Definition at line 61 of file mapdbentrywildmon.h.
Referenced by getParent(), and MapDBEntryWildMon().
|
protected |
Resolved species (deepLink).
Definition at line 60 of file mapdbentrywildmon.h.
Referenced by deepLink(), and getToPokemon().