supertux
Public Member Functions | List of all members
LevelIntro Class Referencefinal

Screen that welcomes the player to a level. More...

#include <levelintro.hpp>

Inheritance diagram for LevelIntro:
Inheritance graph
[legend]
Collaboration diagram for LevelIntro:
Collaboration graph
[legend]

Public Member Functions

 LevelIntro (const Level &level, const Statistics *best_level_statistics, const PlayerStatus &player_status)
 
virtual void setup () override
 gets called before this screen gets activated (which is at least once before the first draw or update call
 
virtual void draw (Compositor &compositor) override
 gets called once per frame. More...
 
virtual void update (float dt_sec, const Controller &controller) override
 gets called for once (per logical) frame. More...
 
virtual IntegrationStatus get_status () const override
 Gives details about what the user is doing right now. More...
 
- Public Member Functions inherited from Screen
virtual void leave ()
 gets called when the current screen is temporarily suspended
 

Detailed Description

Screen that welcomes the player to a level.

Member Function Documentation

◆ draw()

void LevelIntro::draw ( Compositor compositor)
overridevirtual

gets called once per frame.

The screen should draw itself in this function. State changes should not be done in this function, but rather in update

Implements Screen.

◆ get_status()

IntegrationStatus LevelIntro::get_status ( ) const
overridevirtual

Gives details about what the user is doing right now.

Returns
activity details for presence integrations

Implements Screen.

◆ update()

void LevelIntro::update ( float  dt_sec,
const Controller controller 
)
overridevirtual

gets called for once (per logical) frame.

Screens should do their state updates and logic here

Implements Screen.


The documentation for this class was generated from the following files: