constexpr var8 wildMonsCount
Wild-encounter slots per list (grass or water).
One wild-encounter slot: a species index and a level.
void reset()
Blank this slot.
int index
Species index (backs property).
bool operator>(const AreaPokemonWild &a)
Order by encounter value.
void save(SaveFileIterator *it)
Write one entry at the cursor.
bool operator<(const AreaPokemonWild &a)
Order by encounter value.
AreaPokemonWild(int index=0, int level=0)
< Species index.
protected::void indexChanged()
int level
Encounter level (backs property).
void load(SaveFileIterator *it)
Read one entry at the cursor.
void randomize()
Generates a random Pokemon from any dex entry and level.
void waterMonsSwap(int from, int to)
Reorder water slots.
int waterMonsCount()
Water-slot count (wildMonsCount).
void load(SaveFile *saveFile=nullptr)
Expand both encounter tables from the save.
AreaPokemonWild * grassMons[wildMonsCount]
The 10 grass-encounter slots.
void grassMonsSwap(int from, int to)
Reorder grass slots.
void randomize()
Randomize the encounter tables.
AreaPokemonWild * waterMons[wildMonsCount]
The 10 water-encounter slots.
void setTo(MapDBEntry *map)
Set encounters from map.
void pauseMons3StepsChanged()
int grassMonsCount()
Grass-slot count (wildMonsCount).
AreaPokemonWild * grassMonsAt(int ind)
Grass slot ind (GC-protected return).
AreaPokemonWild * waterMonsAt(int ind)
Water slot ind (GC-protected return).
void reset()
Blank both encounter tables.
protected::void grassRateChanged()
AreaPokemon(SaveFile *saveFile=nullptr)
< Grass encounter rate (0 = none).
void save(SaveFile *saveFile)
Flatten both encounter tables to the save.
A moving cursor over a SaveFile, layering auto-advancing reads/writes on top of SaveFileToolset.
One loaded save: the raw 32 KB bytes, their expanded object tree, and the tools that move between the...
Project-wide fixed-width integer aliases (var8, var16, ...).
var8e var8
Everyday 8-bit alias. Exact (not "fastest") to dodge the pointer-width bug noted above.
Import/export macro for the savefile library, plus the central list of QObject types kept deliberatel...
#define SAVEFILE_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.
One map's complete static definition – the root of the MapDBEntry family.