-
Notifications
You must be signed in to change notification settings - Fork 11
/
globals.h
103 lines (97 loc) · 1.69 KB
/
globals.h
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#pragma once
#include <limits>
#include <limits.h>
#include <string>
#include <bitset>
#include <chrono>
#include "defs.h"
int score_max();
void inc_score_max(int inc);
extern int eg_score_max;
const int bigfix = INT_MAX;
extern std::string inbuf;
extern std::string inbuf1;
extern std::chrono::steady_clock::time_point start_time;
extern ObjectP last_it;
enum FlagId
{
null_flag,
rug_moved,
troll_flag,
low_tide,
dome_flag,
glacier_flag,
glacier_melt,
echo_flag,
riddle_flag,
lld_flag,
xb,
xc,
cyclops_flag,
magic_flag,
rainbow,
gnome_door,
carousel_flip,
carousel_zoom,
cage_solve,
bank_solve,
egg_solve,
sing_song,
cpsolve,
palan_solve,
slide_solve,
light_load,
egypt_flag,
empty_handed,
deflate,
cpout,
mirror_open,
wood_open,
grate_revealed,
grunlock,
end_game_flag,
tell_flag,
parse_won,
lucky,
no_obj_print,
mr1,
mr2,
mrswpush,
mud,
brflag1,
brflag2,
brief_flag,
super_brief,
thief_engrossed,
dead,
zgnome,
cpblock,
cppush,
dead_flag,
gate_flag,
mirror_mung,
plook,
ptouch,
punlock,
cage_top,
on_pole,
buoy_flag,
bucket_top,
blab,
gnome_flag,
folflag,
inqstartflag,
safe_flag,
num_flag_bits
};
// Puzzle room
extern int cphere;
typedef std::array<ObjList, 64> PuzzleContents;
extern PuzzleContents cpobjs;
extern std::array<int, 64> cpuvec;
typedef std::tuple<ObjectP, int> cpwall_val;
typedef std::array<cpwall_val, 4> cpwall_vec;
extern cpwall_vec cpwalls;
extern std::bitset<num_flag_bits> flags;
int load_max();
void load_max(int new_load);