-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.h
More file actions
61 lines (53 loc) · 1.34 KB
/
Copy pathprogress.h
File metadata and controls
61 lines (53 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include <fstream>
#include "player.h"
#include "maps.h"
#include "format.h"
using namespace std;
// Progress class, used to save and load game progress for both characters
class Progress {
public:
int scn_num;
int map_code;
int event_num;
int ending_num;
// for hero
bool can_enterMonster;
bool can_enterCastle;
bool first_time_entering_castle;
bool first_time_entering_store;
bool talked_to_oldman;
bool talked_to_robert;
bool talked_to_cooper;
bool saw_key;
bool saw_treasure;
bool saw_monster;
bool monster_noticed;
bool monster_killed;
bool dragonnpc_killed;
bool dragon_killed;
bool get_treasure1;
bool get_treasure2;
bool get_treasure3;
bool all_treasure;
int key_take_count;
bool hero_know_fact;
bool hero_killed_all;
// for girl
bool finish_intro;
bool first_time_entering_village;
bool first_time_entering_forest;
bool first_time_entering_back_village;
bool get_certificate;
bool talked_to_monster;
bool talked_to_dragon;
bool girl_know_fact;
bool girl_rewind;
public:
void save_progress(Player player);
bool checking_loading();
void load_progress(Player &player);
void reset_progress();
void delete_progress();
};
extern Progress progress;