/[enigma]/enigma/options.hh
ViewVC logotype

Diff of /enigma/options.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dheck, Wed Oct 23 19:24:41 2002 UTC revision 1.4 by dheck, Wed Dec 4 19:52:03 2002 UTC
# Line 35  namespace options Line 35  namespace options
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26