|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The current map's complete live state – everything about "where you are". More...
#include <area.h>
Public Member Functions | |
| Area (SaveFile *saveFile=nullptr) | |
| < Map music/audio settings. | |
| virtual | ~Area () |
| void | load (SaveFile *saveFile=nullptr) |
| Expand the whole area from the save. | |
| void | save (SaveFile *saveFile) |
| Flatten the whole area to the save. | |
| void | reset () |
| Blank the whole area. | |
| void | randomize () |
| Randomize the area (constrained, playable). | |
| void | setTo (MapDBEntry *map) |
Reconfigure the area to map (the "place on any map" feature). | |
Public Attributes | |
| AreaAudio * | audio = nullptr |
| AreaLoadedSprites * | preloadedSprites = nullptr |
| AreaGeneral * | general = nullptr |
| AreaMap * | map = nullptr |
| AreaNPC * | npc = nullptr |
| AreaPlayer * | player = nullptr |
| AreaPokemon * | pokemon = nullptr |
| AreaSign * | signs = nullptr |
| AreaSprites * | sprites = nullptr |
| AreaTileset * | tileset = nullptr |
| AreaWarps * | warps = nullptr |
Protected Member Functions | |
| void | preloadedSpritesChanged () |
| void | generalChanged () |
| void | mapChanged () |
| void | npcChanged () |
| void | playerChanged () |
| void | pokemonChanged () |
| void | signsChanged () |
| void | spritesChanged () |
| void | tilesetChanged () |
| void | warpsChanged () |
Protected Attributes | |
| : void audioChanged() | |
The current map's complete live state – everything about "where you are".
Groups the eleven facets of the map the player currently stands on: audio, preloadedSprites, general, map, npc, player position, wild pokemon, signs, sprites, tileset, and warps. Follows the standard expanded-node convention (load/save/reset/randomize – see SaveFileExpanded), and adds setTo(MapDBEntry*) which is the heart of the "place the player on any map" feature: it reconfigures the whole area to a chosen map with correct warps/sprites/music/tileset.
| Area::Area | ( | SaveFile * | saveFile = nullptr | ) |
< Map music/audio settings.
Sprite sets loaded for the map. Contrast, letter delay, playtime toggle (QML-traversed). Map id, size, pointers, connections. NPC movement state. Player position/facing on the map. Wild-encounter data. The map's signs. The map's sprites/NPCs. The map's tileset. The map's warps.
Definition at line 43 of file area.cpp.
References audio, general, load(), map, npc, player, pokemon, preloadedSprites, signs, sprites, tileset, and warps.
|
virtual |
|
protected |
| void Area::load | ( | SaveFile * | saveFile = nullptr | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void Area::randomize | ( | ) |
Randomize the area (constrained, playable).
Definition at line 123 of file area.cpp.
References audio, general, MapsDB::inst(), Random::inst(), map, npc, player, pokemon, preloadedSprites, MapsDB::search(), signs, sprites, tileset, and warps.
Referenced by warpsChanged().
| void Area::reset | ( | ) |
| void Area::save | ( | SaveFile * | saveFile | ) |
| void Area::setTo | ( | MapDBEntry * | map | ) |
Reconfigure the area to map (the "place on any map" feature).
Definition at line 155 of file area.cpp.
References audio, general, Random::inst(), map, npc, player, pokemon, preloadedSprites, signs, sprites, tileset, and warps.
Referenced by warpsChanged().
|
protected |
|
protected |
|
protected |
|
protected |
References map, randomize(), reset(), and setTo().
| AreaAudio* Area::audio = nullptr |
| AreaGeneral* Area::general = nullptr |
| AreaMap* Area::map = nullptr |
| AreaNPC* Area::npc = nullptr |
| AreaPlayer* Area::player = nullptr |
| AreaPokemon* Area::pokemon = nullptr |
| AreaLoadedSprites* Area::preloadedSprites = nullptr |
Definition at line 125 of file area.h.
Referenced by Area(), load(), randomize(), reset(), save(), setTo(), and ~Area().
| AreaSign* Area::signs = nullptr |
| AreaSprites* Area::sprites = nullptr |
| AreaTileset* Area::tileset = nullptr |
| AreaWarps* Area::warps = nullptr |