X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flevel.h;h=d627d82458beacccc14cef22e0268a8d5e9cd754;hb=5a542dea3c6043703683b68fcaa774f6cb0d9127;hp=b711e36154d3119ae616c944a5483bf8e8c39a2e;hpb=083eeaf363c0b527b398e9257a6474c1054884ce;p=supertux.git diff --git a/src/level.h b/src/level.h index b711e3615..d627d8245 100644 --- a/src/level.h +++ b/src/level.h @@ -35,18 +35,29 @@ class LispReader; class Level { public: + enum EndSequenceType{ + NONE_ENDSEQ_ANIM, + FIREWORKS_ENDSEQ_ANIM + }; + std::string name; std::string author; - int time_left; + int timelimit; typedef std::map Sectors; Sectors sectors; + EndSequenceType end_sequence_type; public: Level(); ~Level(); + // loads a levelfile void load(const std::string& filename); void save(const std::string& filename); + static void create(const std::string& filename); + + EndSequenceType get_end_sequence_type() const + { return end_sequence_type; } const std::string& get_name() const { return name; }