|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A handful of one-off "have you done X yet" milestone flags. More...
#include <worldcompleted.h>
Public Member Functions | |
| WorldCompleted (SaveFile *saveFile=nullptr) | |
| < Got the Old Rod. | |
| virtual | ~WorldCompleted () |
| void | load (SaveFile *saveFile=nullptr) |
| Expand these flags from the save. | |
| void | save (SaveFile *saveFile) |
| Flatten these flags to the save. | |
| protected::void | obtainedOldRodChanged () |
| void | obtainedGoodRodChanged () |
| void | obtainedSuperRodChanged () |
| void | obtainedLaprasChanged () |
| void | obtainedStarterPokemonChanged () |
| void | everHealedPokemonChanged () |
| void | satisfiedSaffronGuardsChanged () |
| void | defeatedLoreleiChanged () |
| void | reset () |
| Blank these milestones. | |
| void | randomize () |
| Randomize these milestones. | |
Public Attributes | |
| bool | obtainedOldRod |
| bool | obtainedGoodRod |
| bool | obtainedSuperRod |
| bool | obtainedLapras |
| bool | obtainedStarterPokemon |
| bool | everHealedPokemon |
| bool | satisfiedSaffronGuards |
| bool | defeatedLorelei |
A handful of one-off "have you done X yet" milestone flags.
Unlike the bulk WorldEvents bitfield, these are individually-meaningful named one-shots the game tracks specially: the three fishing rods, the Lapras gift, the starter, whether you've ever healed, the Saffron guards, and beating Lorelei. Grouped (in the fields) into rods / Pokemon / other. Standard expanded-node convention (see SaveFileExpanded).
Definition at line 34 of file worldcompleted.h.
| WorldCompleted::WorldCompleted | ( | SaveFile * | saveFile = nullptr | ) |
< Got the Old Rod.
Got the Good Rod. Got the Super Rod. Received the Lapras gift. Chose a starter. Have ever healed at a center. Gave the Saffron guards their drink. Beat Elite Four Lorelei.
Definition at line 29 of file worldcompleted.cpp.
References load().
|
virtual |
Definition at line 34 of file worldcompleted.cpp.
| void WorldCompleted::defeatedLoreleiChanged | ( | ) |
References randomize(), and reset().
| void WorldCompleted::load | ( | SaveFile * | saveFile = nullptr | ) |
Expand these flags from the save.
Definition at line 36 of file worldcompleted.cpp.
References defeatedLorelei, defeatedLoreleiChanged(), everHealedPokemon, everHealedPokemonChanged(), obtainedGoodRod, obtainedGoodRodChanged(), obtainedLapras, obtainedLaprasChanged(), obtainedOldRod, obtainedOldRodChanged(), obtainedStarterPokemon, obtainedStarterPokemonChanged(), obtainedSuperRod, obtainedSuperRodChanged(), reset(), satisfiedSaffronGuards, satisfiedSaffronGuardsChanged(), and SaveFile::toolset.
Referenced by WorldCompleted().
| void WorldCompleted::randomize | ( | ) |
Randomize these milestones.
Definition at line 114 of file worldcompleted.cpp.
References reset().
Referenced by defeatedLoreleiChanged().
| void WorldCompleted::reset | ( | ) |
Blank these milestones.
Definition at line 84 of file worldcompleted.cpp.
References defeatedLorelei, defeatedLoreleiChanged(), everHealedPokemon, everHealedPokemonChanged(), obtainedGoodRod, obtainedGoodRodChanged(), obtainedLapras, obtainedLaprasChanged(), obtainedOldRod, obtainedOldRodChanged(), obtainedStarterPokemon, obtainedStarterPokemonChanged(), obtainedSuperRod, obtainedSuperRodChanged(), satisfiedSaffronGuards, and satisfiedSaffronGuardsChanged().
Referenced by defeatedLoreleiChanged(), load(), and randomize().
| void WorldCompleted::save | ( | SaveFile * | saveFile | ) |
Flatten these flags to the save.
Definition at line 70 of file worldcompleted.cpp.
References defeatedLorelei, everHealedPokemon, obtainedGoodRod, obtainedLapras, obtainedOldRod, obtainedStarterPokemon, obtainedSuperRod, satisfiedSaffronGuards, SaveFileToolset::setBit(), and SaveFile::toolset.
| bool WorldCompleted::defeatedLorelei |
Definition at line 81 of file worldcompleted.h.
| bool WorldCompleted::everHealedPokemon |
Definition at line 77 of file worldcompleted.h.
| bool WorldCompleted::obtainedGoodRod |
Definition at line 71 of file worldcompleted.h.
| bool WorldCompleted::obtainedLapras |
Definition at line 75 of file worldcompleted.h.
| bool WorldCompleted::obtainedOldRod |
Definition at line 70 of file worldcompleted.h.
| bool WorldCompleted::obtainedStarterPokemon |
Definition at line 76 of file worldcompleted.h.
| bool WorldCompleted::obtainedSuperRod |
Definition at line 72 of file worldcompleted.h.
| bool WorldCompleted::satisfiedSaffronGuards |
Definition at line 80 of file worldcompleted.h.