17 #ifndef HEADER_SUPERTUX_SUPERTUX_LEVELSET_SCREEN_HPP 18 #define HEADER_SUPERTUX_SUPERTUX_LEVELSET_SCREEN_HPP 23 #include "math/vector.hpp" 24 #include "supertux/screen.hpp" 25 #include "util/currenton.hpp" 33 std::string m_basedir;
34 std::string m_level_filename;
41 const std::optional<std::pair<std::string, Vector>>& start_pos);
46 virtual void setup()
override;
47 virtual void leave()
override;
51 void finished_level(
bool win);
54 std::optional<std::pair<std::string, Vector>> m_start_pos;
Definition: controller.hpp:57
Abstract base class for code the MainLoop runs exclusively and full-screen.
Definition: screen.hpp:31
Definition: levelset_screen.hpp:29
virtual void update(float dt_sec, const Controller &controller) override
gets called for once (per logical) frame.
Definition: levelset_screen.cpp:58
virtual void draw(Compositor &compositor) override
gets called once per frame.
Definition: levelset_screen.cpp:53
virtual void setup() override
gets called before this screen gets activated (which is at least once before the first draw or update...
Definition: levelset_screen.cpp:69
A 'Currenton' allows access to the currently active instance of a class via the static current() func...
Definition: currenton.hpp:30
virtual IntegrationStatus get_status() const override
Gives details about what the user is doing right now.
Definition: levelset_screen.cpp:104
Definition: compositor.hpp:29
Definition: integration.hpp:26
Definition: savegame.hpp:69
virtual void leave() override
gets called when the current screen is temporarily suspended
Definition: levelset_screen.cpp:99