supertux
Public Member Functions | List of all members
LevelsetScreen Class Referencefinal
Inheritance diagram for LevelsetScreen:
Inheritance graph
[legend]
Collaboration diagram for LevelsetScreen:
Collaboration graph
[legend]

Public Member Functions

 LevelsetScreen (const std::string &basedir, const std::string &level_filename, Savegame &savegame, const std::optional< std::pair< std::string, Vector >> &start_pos)
 
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 void setup () override
 gets called before this screen gets activated (which is at least once before the first draw or update call
 
virtual void leave () override
 gets called when the current screen is temporarily suspended
 
virtual IntegrationStatus get_status () const override
 Gives details about what the user is doing right now. More...
 
void finished_level (bool win)
 

Additional Inherited Members

- Static Public Member Functions inherited from Currenton< LevelsetScreen >
static LevelsetScreencurrent ()
 

Member Function Documentation

◆ draw()

void LevelsetScreen::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 LevelsetScreen::get_status ( ) const
overridevirtual

Gives details about what the user is doing right now.

Returns
activity details for presence integrations

Implements Screen.

◆ update()

void LevelsetScreen::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: