X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fworldmap%2Flevel.hpp;h=67945e32f19429dec0b31f425c1e50db4372cbfd;hb=ba5f95533903ed6190b0fddede258c86540afffa;hp=13e09415bf0bc4ac7411adb43bda866e4af9bdc6;hpb=52de79ad8301a395a5a2999ecbdf31731c0b65f8;p=supertux.git diff --git a/src/worldmap/level.hpp b/src/worldmap/level.hpp index 13e09415b..67945e32f 100644 --- a/src/worldmap/level.hpp +++ b/src/worldmap/level.hpp @@ -1,4 +1,4 @@ -// $Id: worldmap.hpp 3327 2006-04-13 15:02:40Z ravu_al_hemio $ +// $Id$ // // SuperTux // Copyright (C) 2004 Ingo Ruhnke @@ -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 -