Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
WorldLocal Class Reference

A few map-specific puzzle/minigame state values. More...

#include <worldlocal.h>

Inheritance diagram for WorldLocal:
Collaboration diagram for WorldLocal:

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

Detailed Description

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).

See also
World.

Definition at line 33 of file worldlocal.h.

Constructor & Destructor Documentation

◆ WorldLocal()

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().

◆ ~WorldLocal()

WorldLocal::~WorldLocal ( )
virtual

Definition at line 33 of file worldlocal.cpp.

Member Function Documentation

◆ load()

void WorldLocal::load ( SaveFile * saveFile = nullptr)

◆ lock1Changed()

protected::void WorldLocal::lock1Changed ( )

Referenced by load(), and reset().

◆ lock2Changed()

void WorldLocal::lock2Changed ( )

Referenced by load(), and reset().

◆ quizOppChanged()

void WorldLocal::quizOppChanged ( )

Referenced by load(), and reset().

◆ randomize()

void WorldLocal::randomize ( )

Randomize these values.

Definition at line 97 of file worldlocal.cpp.

References reset().

Referenced by safariStepsChanged().

◆ reset()

◆ safariBallCountChanged()

void WorldLocal::safariBallCountChanged ( )

Referenced by load(), and reset().

◆ safariGameOverChanged()

void WorldLocal::safariGameOverChanged ( )

Referenced by load(), and reset().

◆ safariStepsChanged()

void WorldLocal::safariStepsChanged ( )

References randomize(), and reset().

Referenced by load(), and reset().

◆ save()

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.

Member Data Documentation

◆ lock1

int WorldLocal::lock1
See also
lock1 property.

Definition at line 65 of file worldlocal.h.

Referenced by load(), reset(), and save().

◆ lock2

int WorldLocal::lock2
See also
lock2 property.

Definition at line 66 of file worldlocal.h.

Referenced by load(), reset(), and save().

◆ quizOpp

int WorldLocal::quizOpp
See also
quizOpp property.

Definition at line 69 of file worldlocal.h.

Referenced by load(), reset(), and save().

◆ safariBallCount

int WorldLocal::safariBallCount
See also
safariBallCount property.

Definition at line 73 of file worldlocal.h.

Referenced by load(), reset(), and save().

◆ safariGameOver

bool WorldLocal::safariGameOver
See also
safariGameOver property.

Definition at line 72 of file worldlocal.h.

Referenced by load(), reset(), and save().

◆ safariSteps

int WorldLocal::safariSteps
See also
safariSteps property.

Definition at line 74 of file worldlocal.h.

Referenced by load(), reset(), and save().


The documentation for this class was generated from the following files: