Player12
An open source football management simulator
Loading...
Searching...
No Matches
AboutScene Class Reference

About screen: version and build of this copy, the game's licence status and the third-party software with its licence texts. Opened from the main menu or the command palette. More...

#include <about_scene.h>

Inheritance diagram for AboutScene:
GUIScene

Public Member Functions

 AboutScene (GUIView *guiView_ptr, bool inCareer)
 
void onEnter () override
 Called when the scene is entered/becomes active.
 
void update (float) override
 Updates scene logic.
 
void render () override
 Renders the scene.
 
SceneID getID () const override
 Gets the ID of the scene.
 
- Public Member Functions inherited from GUIScene
 GUIScene (GUIView *guiView_ptr)
 Constructs a new GUIScene.
 
virtual ~GUIScene ()=default
 Destroys the GUIScene.
 
virtual void handleEvent (const SDL_Event &event)
 Handles SDL events for the scene.
 
virtual void onExit ()
 Called when the scene is exited/becomes inactive.
 
virtual void onResume ()
 Called when an overlay above this scene closes and it becomes the active scene again. Screens use it to refresh cached view models after a match, a transfer or any other state change made elsewhere.
 
virtual void onResize (int width, int height)
 Called when the window is resized.
 
virtual std::optional< NavEntry > historyEntry () const
 How to open this screen again from the navigation history, or nothing for scenes outside it (menus, team selection, the live match).
 

Private Member Functions

void renderBuild ()
 
void renderThirdParty ()
 
void leave ()
 

Private Attributes

bool in_career = false
 
std::string version_line
 
std::string build_line
 
std::vector< std::string > licence_texts
 

Additional Inherited Members

- Protected Member Functions inherited from GUIScene
SDL_Renderer * getRenderer () const
 Gets the SDL renderer.
 
SDL_Window * getWindow () const
 Gets the SDL window.
 
GUIView * getGuiView () const
 Gets the associated GUIView.
 
void changeScene (std::unique_ptr< GUIScene > newScene)
 Requests a scene change.
 
void quit ()
 Requests the application to quit.
 
- Protected Attributes inherited from GUIScene
GUIView * guiView
 

Detailed Description

About screen: version and build of this copy, the game's licence status and the third-party software with its licence texts. Opened from the main menu or the command palette.

Constructor & Destructor Documentation

◆ AboutScene()

AboutScene::AboutScene ( GUIView *  guiView_ptr,
bool  inCareer 
)
Parameters
inCareerLeaving pops back to the career (else the main menu).

Member Function Documentation

◆ getID()

SceneID AboutScene::getID ( ) const
inlineoverridevirtual

Gets the ID of the scene.

Returns
The SceneID of this scene.

GUIView uses this identifier to apply match-specific event and scene behavior.

Implements GUIScene.

◆ leave()

void AboutScene::leave ( )
private

◆ onEnter()

void AboutScene::onEnter ( )
overridevirtual

Called when the scene is entered/becomes active.

Reimplemented from GUIScene.

◆ render()

void AboutScene::render ( )
overridevirtual

Renders the scene.

Implements GUIScene.

◆ renderBuild()

void AboutScene::renderBuild ( )
private

◆ renderThirdParty()

void AboutScene::renderThirdParty ( )
private

◆ update()

void AboutScene::update ( float  deltaTime)
inlineoverridevirtual

Updates scene logic.

Parameters
deltaTimeThe time elapsed since the last update.

Implements GUIScene.

Member Data Documentation

◆ build_line

std::string AboutScene::build_line
private

◆ in_career

bool AboutScene::in_career = false
private

◆ licence_texts

std::vector<std::string> AboutScene::licence_texts
private

Licence texts, one per component (empty when the file is missing).

◆ version_line

std::string AboutScene::version_line
private

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