|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
Small aggregate of the two random-name sources (player and Pokemon). More...
#include <names.h>
Public Member Functions | |
| NamesPlayer * | player () const |
The player-name source (backs player). | |
| NamesPokemon * | pokemon () const |
The Pokemon-name source (backs pokemon). | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Static Public Member Functions | |
| static Names * | inst () |
| < Random player-name source. | |
Small aggregate of the two random-name sources (player and Pokemon).
Just groups player (NamesPlayer) and pokemon (NamesPokemon) under one singleton so QML and the name randomizers reach them via db.names. Each source supplies a random in-character name. See db.md.
|
static |
< Random player-name source.
Random Pokemon-name source. The process-wide Names singleton.
Definition at line 29 of file names.cpp.
Referenced by PokemonBox::changeName(), PokemonBox::changeOtData(), DB::names(), DB::qmlProtect(), HoFPokemon::randomize(), PlayerBasics::randomize(), and Rival::randomize().
| NamesPlayer * Names::player | ( | ) | const |
The player-name source (backs player).
Definition at line 35 of file names.cpp.
References NamesPlayer::inst().
Referenced by PokemonBox::changeOtData(), HoFPokemon::randomize(), PlayerBasics::randomize(), and Rival::randomize().
| NamesPokemon * Names::pokemon | ( | ) | const |
The Pokemon-name source (backs pokemon).
Definition at line 40 of file names.cpp.
References NamesPokemon::inst().
Referenced by PokemonBox::changeName().
| void Names::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 45 of file names.cpp.
References NamesPlayer::inst(), NamesPokemon::inst(), AbstractRandomString::qmlProtect(), and Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().