|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A few map-specific puzzle/minigame state values. More...
#include <worldlocal.h>
Public Member Functions | |
| WorldLocal (SaveFile *saveFile=nullptr) | |
| < Lt. | |
| virtual | ~WorldLocal () |
| void | load (SaveFile *saveFile=nullptr) |
| Expand these values from the save. | |
| void | save (SaveFile *saveFile) |
| Flatten these values to the save. | |
| protected::void | lock1Changed () |
| void | lock2Changed () |
| void | quizOppChanged () |
| void | safariGameOverChanged () |
| void | safariBallCountChanged () |
| void | safariStepsChanged () |
| void | reset () |
| Blank these values. | |
| void | randomize () |
| Randomize these values. | |
Public Attributes | |
| int | lock1 |
| int | lock2 |
| int | quizOpp |
| bool | safariGameOver |
| int | safariBallCount |
| int | safariSteps |
A few map-specific puzzle/minigame state values.
Small, named bits of state tied to specific places: the two Lt. Surge trash-can lock positions, the Cinnabar Gym quiz's next opponent, and the Safari Zone game state (over-flag, balls left, steps left). Grouped in the fields by location. Standard expanded-node convention (see SaveFileExpanded).
Definition at line 33 of file worldlocal.h.
| WorldLocal::WorldLocal | ( | SaveFile * | saveFile = nullptr | ) |
< Lt.
Surge trash-can lock #1. Lt. Surge trash-can lock #2. Cinnabar Gym next quiz opponent. Safari run is over. Safari balls remaining. Safari steps remaining.
Definition at line 28 of file worldlocal.cpp.
References load().
|
virtual |
Definition at line 33 of file worldlocal.cpp.
| void WorldLocal::load | ( | SaveFile * | saveFile = nullptr | ) |
Expand these values from the save.
Definition at line 35 of file worldlocal.cpp.
References lock1, lock1Changed(), lock2, lock2Changed(), quizOpp, quizOppChanged(), reset(), safariBallCount, safariBallCountChanged(), safariGameOver, safariGameOverChanged(), safariSteps, safariStepsChanged(), and SaveFile::toolset.
Referenced by WorldLocal().
| void WorldLocal::randomize | ( | ) |
Randomize these values.
Definition at line 97 of file worldlocal.cpp.
References reset().
Referenced by safariStepsChanged().
| void WorldLocal::reset | ( | ) |
Blank these values.
Definition at line 75 of file worldlocal.cpp.
References lock1, lock1Changed(), lock2, lock2Changed(), quizOpp, quizOppChanged(), safariBallCount, safariBallCountChanged(), safariGameOver, safariGameOverChanged(), safariSteps, and safariStepsChanged().
Referenced by load(), randomize(), and safariStepsChanged().
| void WorldLocal::safariStepsChanged | ( | ) |
References randomize(), and reset().
| void WorldLocal::save | ( | SaveFile * | saveFile | ) |
Flatten these values to the save.
Definition at line 63 of file worldlocal.cpp.
References lock1, lock2, quizOpp, safariBallCount, safariGameOver, safariSteps, SaveFileToolset::setByte(), and SaveFile::toolset.
| int WorldLocal::lock1 |
| int WorldLocal::lock2 |
| int WorldLocal::quizOpp |
| int WorldLocal::safariBallCount |
Definition at line 73 of file worldlocal.h.
| bool WorldLocal::safariGameOver |
Definition at line 72 of file worldlocal.h.
| int WorldLocal::safariSteps |
Definition at line 74 of file worldlocal.h.