/[enigma]/enigma/src/game.hh
ViewVC logotype

Diff of /enigma/src/game.hh

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

revision 1.3 by dheck, Thu Jan 30 20:33:33 2003 UTC revision 1.4 by dheck, Sun Mar 23 17:27:06 2003 UTC
# Line 65  namespace enigma Line 65  namespace enigma
65    
66      class LevelPack {      class LevelPack {
67      public:      public:
68          LevelPack(const string &initfile, const string &n)          virtual ~LevelPack() {}
69              : init_file(initfile),name(n)  
70          {}          //! Return level pack's name
71            virtual string name() const = 0;
72          // Load init_file to initialize the level list.  
73          void init();          //! Return number of levels
74            virtual size_t size() const = 0;
75          // Variables.  
76          string init_file;       // Text file containing the level list          virtual bool load_level (size_t index) = 0;
77          string name;            // Name of the level pack ("enigma", "oxyd", ...)  
78          vector<LevelInfo> levels;          virtual LevelInfo *get_info (size_t index) = 0;
79      };      };
80    
81    //     class LevelPack {
82    //     public:
83    //         LevelPack(
84    //             : init_file(initfile),name(n)
85    //         {}
86    
87    //         // Load init_file to initialize the level list.
88    //         void init();
89    
90    //         // Variables.
91    //         string init_file;       // Text file containing the level list
92    //         string name;            // Name of the level pack ("enigma", "oxyd", ...)
93    //         vector<LevelInfo> levels;
94    //     };
95  }  }
96    
97  //----------------------------------------  //----------------------------------------

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