Competitions: the full table of any league (form, promotion and relegation zones, top scorers) or the draw of any national cup.
More...
#include <standings_scene.h>
|
| | StandingsScene (GUIView *parent) |
| |
| void | update (float deltaTime) override |
| | Updates scene logic.
|
| |
| SceneID | getID () const override |
| | Gets the ID of the scene.
|
| |
| | 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 |
| |
| | 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.
|
| |
Competitions: the full table of any league (form, promotion and relegation zones, top scorers) or the draw of any national cup.
◆ StandingsScene()
| StandingsScene::StandingsScene |
( |
GUIView * |
parent | ) |
|
|
explicit |
◆ getID()
| SceneID StandingsScene::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()
|
|
inlineoverrideprotectedvirtual |
◆ refresh()
| void StandingsScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ refreshPastSeason()
| void StandingsScene::refreshPastSeason |
( |
uint16_t |
season | ) |
|
|
private |
Loads an archived final table and its top scorer.
◆ refreshRace()
| void StandingsScene::refreshRace |
( |
| ) |
|
|
private |
Clinched and lost places of every club, and the managed club's run-in.
◆ renderCompetitionSelector()
| void StandingsScene::renderCompetitionSelector |
( |
| ) |
|
|
private |
◆ renderContent()
| void StandingsScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderCup()
| void StandingsScene::renderCup |
( |
| ) |
|
|
private |
◆ renderCupBracketRows()
| void StandingsScene::renderCupBracketRows |
( |
TeamID |
clubId | ) |
const |
|
private |
◆ renderCupDraw()
| void StandingsScene::renderCupDraw |
( |
TeamID |
clubId | ) |
|
|
private |
◆ renderCupSummary()
| void StandingsScene::renderCupSummary |
( |
TeamID |
clubId | ) |
const |
|
private |
◆ renderCupTie()
| void StandingsScene::renderCupTie |
( |
const Match & |
match, |
|
|
size_t |
id, |
|
|
TeamID |
clubId |
|
) |
| const |
|
private |
◆ renderHighlights()
| void StandingsScene::renderHighlights |
( |
| ) |
|
|
private |
◆ renderNeeds()
| void StandingsScene::renderNeeds |
( |
| ) |
const |
|
private |
◆ renderScorers()
| void StandingsScene::renderScorers |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
private |
◆ renderSeasonSelector()
| void StandingsScene::renderSeasonSelector |
( |
| ) |
|
|
private |
◆ renderStandingRow()
| void StandingsScene::renderStandingRow |
( |
size_t |
index, |
|
|
UI::ColumnMask |
mask, |
|
|
TeamID |
clubId, |
|
|
size_t |
continental |
|
) |
| const |
|
private |
◆ renderTable()
| void StandingsScene::renderTable |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
private |
◆ seasonLabel()
| std::string StandingsScene::seasonLabel |
( |
uint16_t |
season | ) |
const |
|
private |
◆ update()
| void StandingsScene::update |
( |
float |
deltaTime | ) |
|
|
overridevirtual |
Updates scene logic.
- Parameters
-
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
◆ GameFlowTest_GUIFlowLifecycle_Test
| friend class GameFlowTest_GUIFlowLifecycle_Test |
|
friend |
◆ GameFlowTest_ManagementScreensMidSeason_Test
| friend class GameFlowTest_ManagementScreensMidSeason_Test |
|
friend |
◆ clinch
Mathematically decided status of each table row (current season).
◆ cup
◆ cup_id
◆ cup_names
| std::vector<std::pair<LeagueID, std::string> > StandingsScene::cup_names |
|
private |
◆ draw_dialog
Ceremony of the cup's latest draw.
◆ league_chosen
| bool StandingsScene::league_chosen = false |
|
private |
◆ league_id
◆ need_lines
| std::vector<std::string> StandingsScene::need_lines |
|
private |
What the managed club needs from its own games, ready to show.
◆ past_season
| std::optional<uint16_t> StandingsScene::past_season |
|
private |
The archived season shown (nullopt: the current table).
◆ past_seasons
| std::vector<uint16_t> StandingsScene::past_seasons |
|
private |
Archived seasons of the shown league, newest first.
◆ places
Deciding places of the shown league (continental places included).
◆ scorers
| std::vector<ScorerRow> StandingsScene::scorers |
|
private |
◆ showing_cup
| bool StandingsScene::showing_cup = false |
|
private |
◆ table
◆ table_mask
Columns the table showed last frame (for the column picker).
◆ zones
The documentation for this class was generated from the following files: