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

The save's playtime clock, surfaced to QML as days/hours/minutes/seconds/frames. More...

#include <worldother.h>

Inheritance diagram for Playtime:
Collaboration diagram for Playtime:

Public Attributes

int hours
 Max 255.
int minutes
 Max 59, any higher will reset to zero and increment hr by 1.
int seconds
 Max 59, any higher will reset to zero and increment min by 1.
int frames
 Max 59, any higher will reset to zero and increment sec by 1.
bool clockMaxed
 Any value; it just stops the clock completely.

Detailed Description

The save's playtime clock, surfaced to QML as days/hours/minutes/seconds/frames.

Stored on disk as hours/minutes/seconds/frames (hours up to 255), this object adds day<->hour conversion (getDays / getHoursAdjusted) so the UI can show "10 days, 15 hours" instead of raw hours, and a clockMaxed flag that stops the clock. Backs the Trainer Card playtime display. The field comments below give the per-unit overflow rules.

See also
WorldOther (owns this).

Definition at line 36 of file worldother.h.

Member Data Documentation

◆ clockMaxed

bool Playtime::clockMaxed

Any value; it just stops the clock completely.

Definition at line 69 of file worldother.h.

◆ frames

int Playtime::frames

Max 59, any higher will reset to zero and increment sec by 1.

Definition at line 66 of file worldother.h.

◆ hours

int Playtime::hours

Max 255.

Definition at line 63 of file worldother.h.

◆ minutes

int Playtime::minutes

Max 59, any higher will reset to zero and increment hr by 1.

Definition at line 64 of file worldother.h.

◆ seconds

int Playtime::seconds

Max 59, any higher will reset to zero and increment min by 1.

Definition at line 65 of file worldother.h.


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