X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fworldmap%2Flevel.hpp;h=67945e32f19429dec0b31f425c1e50db4372cbfd;hb=051da28245f26cb1a073c764de235460e87ec64f;hp=ce59cd2774a1faa613f0113c1a84cbc3a2db111a;hpb=cb941f239a04ee0588c99bfcdcd6aff62e1fbc98;p=supertux.git diff --git a/src/worldmap/level.hpp b/src/worldmap/level.hpp index ce59cd277..67945e32f 100644 --- a/src/worldmap/level.hpp +++ b/src/worldmap/level.hpp @@ -25,6 +25,7 @@ #include "math/vector.hpp" #include "game_object.hpp" #include "statistics.hpp" +#include "video/surface.hpp" class Sprite; @@ -39,11 +40,11 @@ public: virtual void draw(DrawingContext& context); virtual void update(float elapsed_time); - + Vector pos; - std::string name; std::string title; bool solved; + bool auto_play; /**< true if Tux should automatically enter this level if it's unfinished */ std::auto_ptr sprite; @@ -53,11 +54,16 @@ public: /** Script that is run when the level is successfully finished */ std::string extro_script; - /** If false, disables the auto walking after finishing a level */ - bool auto_path; + /** return Surface of level picture or 0 if no picture is available */ + const Surface* get_picture(); + +private: + std::string basedir; + bool picture_cached; + Surface* picture; + }; } #endif -