19 #ifndef HEADER_SUPERTUX_SUPERTUX_TITLE_SCREEN_HPP 20 #define HEADER_SUPERTUX_SUPERTUX_TITLE_SCREEN_HPP 22 #include "supertux/screen.hpp" 23 #include "util/currenton.hpp" 27 #include "control/codecontroller.hpp" 28 #include "supertux/fadetoblack.hpp" 29 #include "video/surface_ptr.hpp" 44 void setup()
override;
45 void leave()
override;
53 void refresh_copyright_text();
55 void set_frame(
const std::string& image);
58 void setup_sector(
Sector& sector);
59 void update_level(
float dt_sec);
63 const bool m_christmas;
66 SurfacePtr m_santahat;
69 std::unique_ptr<CodeController> m_controller;
70 std::unique_ptr<GameSession> m_titlesession;
72 std::string m_copyright_text;
73 std::string m_videosystem_name;
75 bool m_jump_was_released;
Definition: controller.hpp:57
Abstract base class for code the MainLoop runs exclusively and full-screen.
Definition: screen.hpp:31
IntegrationStatus get_status() const override
Gives details about what the user is doing right now.
Definition: title_screen.cpp:281
void draw(Compositor &compositor) override
gets called once per frame.
Definition: title_screen.cpp:162
Represents one of (potentially) multiple, separate parts of a Level.
Definition: sector.hpp:61
A 'Currenton' allows access to the currently active instance of a class via the static current() func...
Definition: currenton.hpp:30
Definition: compositor.hpp:29
Definition: integration.hpp:26
Definition: savegame.hpp:69
void update(float dt_sec, const Controller &controller) override
gets called for once (per logical) frame.
Definition: title_screen.cpp:195
void refresh_level()
Definition: title_screen.cpp:80
Screen that displays the SuperTux logo, lets players start a new game, etc.
Definition: title_screen.hpp:37
void setup() override
gets called before this screen gets activated (which is at least once before the first draw or update...
Definition: title_screen.cpp:64
void leave() override
gets called when the current screen is temporarily suspended
Definition: title_screen.cpp:72
Screen that runs a Level, where Players run and jump through Sectors.
Definition: game_session.hpp:49