- moved levelsubset into an own file
[supertux.git] / src / level_subset.h
1 //  $Id$
2 // 
3 //  SuperTux
4 //  Copyright (C) 2004 SuperTux Development Team, see AUTHORS for details
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 // 
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 //  02111-1307, USA.
20
21 #ifndef SUPERTUX_LEVEL_SUBSET_H
22 #define SUPERTUX_LEVEL_SUBSET_H
23
24 #include <string>
25 #include "lispreader.h"
26
27 class Surface;
28
29 /** This type holds meta-information about a level-subset. 
30     It could be extended to handle manipulation of subsets. */
31 class LevelSubset
32 {
33 public:
34   LevelSubset();
35   ~LevelSubset();
36
37   static void create(const std::string& subset_name);
38   void load(const char* subset);
39   void save();
40
41   std::string get_level_filename(unsigned int i);
42
43   std::string name;
44   std::string title;
45   std::string description;
46   Surface* image;
47   int levels;
48  
49 private:
50   void parse(lisp_object_t* cursor);
51 };
52
53 #endif
54
55 /* Local Variables: */
56 /* mode:c++ */
57 /* End: */