35 |
extern bool WizardMode; |
extern bool WizardMode; |
36 |
extern bool FullScreen; |
extern bool FullScreen; |
37 |
extern bool ShowFPS; |
extern bool ShowFPS; |
38 |
extern bool UseAlpha; |
extern bool UseAlpha; |
39 |
|
|
40 |
void SetVolume(double vol); |
void SetVolume(double vol); |
41 |
|
|
42 |
|
struct LevelStatus { |
43 |
|
LevelStatus(int easy=-1, int hard=-1, int fin=0) |
44 |
|
: par_easy(easy), |
45 |
|
par_hard(hard), |
46 |
|
finished(fin) |
47 |
|
{} |
48 |
|
int par_easy, par_hard; // Best time in seconds (-1: use level default) |
49 |
|
int finished; // User completed this level? |
50 |
|
// 0=no,1=easy,2=hard,3=easy&hard |
51 |
|
}; |
52 |
|
|
53 |
|
/* Get the status of a particular level in a particular pack. |
54 |
|
Returns 0 if no record for this level exists. */ |
55 |
|
LevelStatus *GetLevelStatus(const string &levelpack, |
56 |
|
const string &levelname); |
57 |
|
|
58 |
|
/* Set the status of a particular level. The previous entry (if |
59 |
|
available) for this level is discarded. */ |
60 |
|
void SetLevelStatus(const string &levelpack, |
61 |
|
const string &levelname, |
62 |
|
const LevelStatus &stat); |
63 |
|
|
64 |
|
void SetLevelTime(const string &pack, const string &level, int difficulty, int time); |
65 |
|
void SetLevelFinished(const string &pack, const string &level, int difficulty); |
66 |
|
|
67 |
|
/* Save the current set of options to the user's configuration |
68 |
|
file. (Either ~/.enigmarc on Unix systems or ./enigmarc.lua on |
69 |
|
Win32. */ |
70 |
bool Save (); |
bool Save (); |
71 |
|
|
72 |
|
/* Try to load the user's configuration file. Returns true if |
73 |
|
successful. */ |
74 |
bool Load (); |
bool Load (); |
75 |
} |
} |
76 |
|
|