void load(SaveFile *saveFile=nullptr)
Expand the player state from the save.
void walkBikeSurfChanged()
void yOffsetSinceLastSpecialWarpChanged()
void standingOnWarpChanged()
void playerLastStopDirChanged()
int playerMoveDir
Move direction (raw bits per the table above).
void playerCurDirChanged()
AreaPlayer(SaveFile *saveFile=nullptr)
< Current move direction (raw bits; see field note).
void xBlockCoordChanged()
void playerJumpingYScrnCoordsChanged()
void standingOnDoorChanged()
protected::void playerMoveDirChanged()
void yBlockCoordChanged()
void randomize(int x, int y)
Randomize, placing the player at (x,y).
void xOffsetSinceLastSpecialWarpChanged()
void reset()
Blank the player state.
int yOffsetSinceLastSpecialWarp
void finalLedgeJumpingChanged()
int walkBikeSurf
Movement mode: 0x00 walking, 0x01 biking, 0x02 surfing.
void flyOutofBattleChanged()
void strengthOutsideBattleChanged()
void surfingAllowedChanged()
int xOffsetSinceLastSpecialWarp
int playerLastStopDir
the direction in which the player was moving before the player last stopped
bool battleEndedOrBlackout
void isTrainerBattleChanged()
void usedCardKeyChanged()
int playerCurDir
if the player is moving, the current direction if the player is not moving, the last the direction in...
bool strengthOutsideBattle
void save(SaveFile *saveFile)
Flatten the player state to the save.
void setTo(MapDBEntry *map, int x, int y)
Place the player on map at (x,y).
void movingThroughDoorChanged()
void usingLinkCableChanged()
void battleEndedOrBlackoutChanged()
int playerJumpingYScrnCoords
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.
Player facing/movement directions, QML-visible.