X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fworldmap%2Flevel.hpp;h=d8a48e92f271b7b6c5375b9fee99f3cdc785bde6;hb=850855bb178f8325762e7c9b1db94118cd48ad5c;hp=ce59cd2774a1faa613f0113c1a84cbc3a2db111a;hpb=cb941f239a04ee0588c99bfcdcd6aff62e1fbc98;p=supertux.git diff --git a/src/worldmap/level.hpp b/src/worldmap/level.hpp index ce59cd277..d8a48e92f 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; @@ -55,6 +56,15 @@ public: /** 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; + }; }