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

International football: the continental club competitions (league-phase table with its qualification zones, matchdays, knockout bracket, entrants and association coefficients) and the national teams (the club's call-ups, fixtures, qualifying and finals groups, caps leaders and the nations' ranking). More...

#include <international_scene.h>

Inheritance diagram for InternationalScene:
ManagementScene GUIScene

Classes

struct  AssociationLine
 
struct  CalledLine
 
struct  CompetitionChoice
 
struct  EntrantLine
 
struct  FixtureLine
 
struct  GroupBlock
 
struct  GroupLine
 
struct  LeaderLine
 
struct  NationFixture
 
struct  RankingLine
 
struct  RoundBlock
 
struct  TableLine
 
struct  TieLine
 

Public Member Functions

 InternationalScene (GUIView *parent)
 
void update (float deltaTime) override
 Updates scene logic.
 
SceneID getID () const override
 Gets the ID of the scene.
 
- Public Member Functions inherited from ManagementScene
 ManagementScene (GUIView *guiViewPtr)
 
void render () final
 Renders the scene.
 
void onEnter () override
 Called when the scene is entered/becomes active.
 
void onResume () override
 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.
 
void handleEvent (const SDL_Event &event) override
 
std::optional< NavEntry > historyEntry () const override
 
- Public Member Functions inherited from GUIScene
 GUIScene (GUIView *guiView_ptr)
 Constructs a new GUIScene.
 
virtual ~GUIScene ()=default
 Destroys the GUIScene.
 
virtual void onExit ()
 Called when the scene is exited/becomes inactive.
 
virtual void onResize (int width, int height)
 Called when the window is resized.
 

Protected Member Functions

void renderContent () override
 Draws the page body inside the content region.
 
NavSection navSection () const override
 Sidebar entry highlighted for this screen.
 
void refresh () override
 Rebuilds cached view models from the game state.
 
- Protected Member Functions inherited from ManagementScene
virtual std::optional< EditorContext > editorContext () const
 
void showToast (std::string message, bool isError=false)
 Shows a short confirmation message in the top bar.
 
HolidayDialog & holidayDialog ()
 Holiday planner and return report of this screen.
 
- 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.
 

Private Member Functions

void refreshContinental ()
 
void refreshNational ()
 
void renderContinental ()
 
void renderNational ()
 
void renderCompetitionPicker ()
 
void renderLeagueTable (float width)
 
void renderEntrants (float width)
 
void renderBracket (float width) const
 
void renderMatchday (float width)
 
void renderAssociations (float width)
 
void renderCalledUp (float width)
 
void renderNationFixtures (float width)
 
void renderGroups (float width)
 
void renderLeaders (float width)
 
void renderRanking (float width)
 

Private Attributes

int tab = 0
 
int fixture_filter = 0
 
size_t competition_index = 0
 
bool competition_chosen = false
 
int matchday = 0
 
bool matchday_chosen = false
 
GameDateValue refreshed_on
 
std::vector< CompetitionChoice > competitions
 
bool drawn = false
 
std::string draw_date
 
std::string stage
 
std::string club_status
 
std::string holder
 
std::string next_date
 
uint8_t direct_places = 0
 
uint8_t playoff_places = 0
 
uint8_t matchdays = 0
 
std::vector< TableLine > table
 
std::vector< EntrantLine > entrants
 
std::vector< RoundBlock > rounds
 
std::vector< std::vector< FixtureLine > > fixtures_by_matchday
 
std::vector< AssociationLine > associations
 
std::vector< CalledLine > called
 
std::vector< NationFixture > upcoming
 
std::vector< NationFixture > results
 
std::string groups_title
 
std::vector< GroupBlock > groups
 
std::vector< std::string > knockout_lines
 
std::vector< LeaderLine > leaders
 
std::vector< RankingLine > ranking
 
std::string next_international
 
std::string cycle
 
std::string champion
 

Friends

class GameFlowTest_GUIFlowLifecycle_Test
 

Additional Inherited Members

- Protected Attributes inherited from GUIScene
GUIView * guiView
 

Detailed Description

International football: the continental club competitions (league-phase table with its qualification zones, matchdays, knockout bracket, entrants and association coefficients) and the national teams (the club's call-ups, fixtures, qualifying and finals groups, caps leaders and the nations' ranking).

Constructor & Destructor Documentation

◆ InternationalScene()

InternationalScene::InternationalScene ( GUIView *  parent)
explicit

Member Function Documentation

◆ getID()

SceneID InternationalScene::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.

◆ navSection()

NavSection InternationalScene::navSection ( ) const
inlineoverrideprotectedvirtual

Sidebar entry highlighted for this screen.

Implements ManagementScene.

◆ refresh()

void InternationalScene::refresh ( )
overrideprotectedvirtual

Rebuilds cached view models from the game state.

Reimplemented from ManagementScene.

◆ refreshContinental()

void InternationalScene::refreshContinental ( )
private

◆ refreshNational()

void InternationalScene::refreshNational ( )
private

◆ renderAssociations()

void InternationalScene::renderAssociations ( float  width)
private

◆ renderBracket()

void InternationalScene::renderBracket ( float  width) const
private

◆ renderCalledUp()

void InternationalScene::renderCalledUp ( float  width)
private

◆ renderCompetitionPicker()

void InternationalScene::renderCompetitionPicker ( )
private

◆ renderContent()

void InternationalScene::renderContent ( )
overrideprotectedvirtual

Draws the page body inside the content region.

Implements ManagementScene.

◆ renderContinental()

void InternationalScene::renderContinental ( )
private

◆ renderEntrants()

void InternationalScene::renderEntrants ( float  width)
private

◆ renderGroups()

void InternationalScene::renderGroups ( float  width)
private

◆ renderLeaders()

void InternationalScene::renderLeaders ( float  width)
private

◆ renderLeagueTable()

void InternationalScene::renderLeagueTable ( float  width)
private

◆ renderMatchday()

void InternationalScene::renderMatchday ( float  width)
private

◆ renderNational()

void InternationalScene::renderNational ( )
private

◆ renderNationFixtures()

void InternationalScene::renderNationFixtures ( float  width)
private

◆ renderRanking()

void InternationalScene::renderRanking ( float  width)
private

◆ update()

void InternationalScene::update ( float  deltaTime)
overridevirtual

Updates scene logic.

Parameters
deltaTimeThe time elapsed since the last update.

Implements GUIScene.

Friends And Related Symbol Documentation

◆ GameFlowTest_GUIFlowLifecycle_Test

friend class GameFlowTest_GUIFlowLifecycle_Test
friend

Member Data Documentation

◆ associations

std::vector<AssociationLine> InternationalScene::associations
private

◆ called

std::vector<CalledLine> InternationalScene::called
private

◆ champion

std::string InternationalScene::champion
private

◆ club_status

std::string InternationalScene::club_status
private

◆ competition_chosen

bool InternationalScene::competition_chosen = false
private

◆ competition_index

size_t InternationalScene::competition_index = 0
private

◆ competitions

std::vector<CompetitionChoice> InternationalScene::competitions
private

◆ cycle

std::string InternationalScene::cycle
private

◆ direct_places

uint8_t InternationalScene::direct_places = 0
private

◆ draw_date

std::string InternationalScene::draw_date
private

◆ drawn

bool InternationalScene::drawn = false
private

◆ entrants

std::vector<EntrantLine> InternationalScene::entrants
private

◆ fixture_filter

int InternationalScene::fixture_filter = 0
private

National fixtures: 0 upcoming, 1 results.

◆ fixtures_by_matchday

std::vector<std::vector<FixtureLine> > InternationalScene::fixtures_by_matchday
private

◆ groups

std::vector<GroupBlock> InternationalScene::groups
private

◆ groups_title

std::string InternationalScene::groups_title
private

◆ holder

std::string InternationalScene::holder
private

◆ knockout_lines

std::vector<std::string> InternationalScene::knockout_lines
private

◆ leaders

std::vector<LeaderLine> InternationalScene::leaders
private

◆ matchday

int InternationalScene::matchday = 0
private

Selected league-phase matchday, 1-based.

◆ matchday_chosen

bool InternationalScene::matchday_chosen = false
private

◆ matchdays

uint8_t InternationalScene::matchdays = 0
private

◆ next_date

std::string InternationalScene::next_date
private

◆ next_international

std::string InternationalScene::next_international
private

◆ playoff_places

uint8_t InternationalScene::playoff_places = 0
private

◆ ranking

std::vector<RankingLine> InternationalScene::ranking
private

◆ refreshed_on

GameDateValue InternationalScene::refreshed_on
private

◆ results

std::vector<NationFixture> InternationalScene::results
private

◆ rounds

std::vector<RoundBlock> InternationalScene::rounds
private

◆ stage

std::string InternationalScene::stage
private

◆ tab

int InternationalScene::tab = 0
private

◆ table

std::vector<TableLine> InternationalScene::table
private

◆ upcoming

std::vector<NationFixture> InternationalScene::upcoming
private

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