Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
worldcompleted.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Twilight
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15*/
16#pragma once
17#include <QObject>
18#include <pse-common/types.h>
20
21class SaveFile;
22
34class SAVEFILE_AUTOPORT WorldCompleted : public QObject
35{
36 Q_OBJECT
37
38 Q_PROPERTY(bool obtainedOldRod MEMBER obtainedOldRod NOTIFY obtainedOldRodChanged)
39 Q_PROPERTY(bool obtainedGoodRod MEMBER obtainedGoodRod NOTIFY obtainedGoodRodChanged)
40 Q_PROPERTY(bool obtainedSuperRod MEMBER obtainedSuperRod NOTIFY obtainedSuperRodChanged)
41 Q_PROPERTY(bool obtainedLapras MEMBER obtainedLapras NOTIFY obtainedLaprasChanged)
45 Q_PROPERTY(bool defeatedLorelei MEMBER defeatedLorelei NOTIFY defeatedLoreleiChanged)
46
47public:
48 WorldCompleted(SaveFile* saveFile = nullptr);
49 virtual ~WorldCompleted();
50
51 void load(SaveFile* saveFile = nullptr);
52 void save(SaveFile* saveFile);
53
54signals:
63
64public slots:
65 void reset();
66 void randomize();
67
68public:
69 // Rods
73
74 // Pokemon
78
79 // Other
82};
One loaded save: the raw 32 KB bytes, their expanded object tree, and the tools that move between the...
Definition savefile.h:46
void obtainedLaprasChanged()
bool satisfiedSaffronGuards
protected::void obtainedOldRodChanged()
void obtainedGoodRodChanged()
void save(SaveFile *saveFile)
Flatten these flags to the save.
void obtainedStarterPokemonChanged()
void randomize()
Randomize these milestones.
bool obtainedStarterPokemon
void defeatedLoreleiChanged()
void reset()
Blank these milestones.
WorldCompleted(SaveFile *saveFile=nullptr)
< Got the Old Rod.
void obtainedSuperRodChanged()
void load(SaveFile *saveFile=nullptr)
Expand these flags from the save.
void everHealedPokemonChanged()
void satisfiedSaffronGuardsChanged()
Project-wide fixed-width integer aliases (var8, var16, ...).
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.