projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make it possible to put background images in each layer
[supertux.git]
/
src
/
level_subset.h
diff --git
a/src/level_subset.h
b/src/level_subset.h
index
4ff6b4d
..
8202271
100644
(file)
--- a/
src/level_subset.h
+++ b/
src/level_subset.h
@@
-23,18
+23,15
@@
#include <vector>
#include <string>
#include <vector>
#include <string>
-#include "lispreader.h"
+#include "
utils/
lispreader.h"
-
class Surface
;
+
using namespace SuperTux
;
/** This type holds meta-information about a level-subset.
It could be extended to handle manipulation of subsets. */
class LevelSubset
{
private:
/** This type holds meta-information about a level-subset.
It could be extended to handle manipulation of subsets. */
class LevelSubset
{
private:
- /** Directory in which the level subset is stored */
- std::string directory;
-
/** Level filenames without the leading path ("level1.stl",
"level3.stl", ...) */
std::vector<std::string> levels;
/** Level filenames without the leading path ("level1.stl",
"level3.stl", ...) */
std::vector<std::string> levels;
@@
-44,7
+41,7
@@
public:
~LevelSubset();
static void create(const std::string& subset_name);
~LevelSubset();
static void create(const std::string& subset_name);
- void load(const
char* subset
);
+ void load(const
std::string& filename
);
void save();
void add_level(const std::string& name);
void save();
void add_level(const std::string& name);
@@
-55,7
+52,7
@@
public:
std::string name;
std::string title;
std::string description;
std::string name;
std::string title;
std::string description;
-
Surface* image
;
+
bool hide_from_contribs
;
private:
void read_info_file(const std::string& info_file);
private:
void read_info_file(const std::string& info_file);