Squad planner: depth chart per position group (first choice, backup, prospect) with the manager's squad statuses, recruitment needs, age profile and contract calendar, for this season or projected to the next one (expiring contracts gone, everyone a year older).
More...
#include <squad_planner_scene.h>
|
| struct | Group |
| | One position group of the depth chart. More...
|
| |
| struct | Need |
| | A suggested need, pre-formatted. More...
|
| |
| struct | Row |
| | One player in the depth chart, pre-formatted. More...
|
| |
| struct | View |
| | Everything shown for one season. More...
|
| |
|
| | SquadPlannerScene (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.
|
| |
Squad planner: depth chart per position group (first choice, backup, prospect) with the manager's squad statuses, recruitment needs, age profile and contract calendar, for this season or projected to the next one (expiring contracts gone, everyone a year older).
◆ SquadPlannerScene()
| SquadPlannerScene::SquadPlannerScene |
( |
GUIView * |
parent | ) |
|
|
explicit |
◆ addFocus()
| void SquadPlannerScene::addFocus |
( |
const Need & |
need | ) |
|
|
private |
◆ build()
| void SquadPlannerScene::build |
( |
View & |
view, |
|
|
int |
season_offset |
|
) |
| const |
|
private |
◆ getID()
| SceneID SquadPlannerScene::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 SquadPlannerScene::navSection |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ refresh()
| void SquadPlannerScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ renderContent()
| void SquadPlannerScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderDepth()
| void SquadPlannerScene::renderDepth |
( |
float |
width | ) |
|
|
private |
◆ renderDetail()
| void SquadPlannerScene::renderDetail |
( |
const Row & |
row | ) |
|
|
private |
◆ renderGroup()
| void SquadPlannerScene::renderGroup |
( |
const Group & |
group | ) |
|
|
private |
◆ renderNeeds()
| void SquadPlannerScene::renderNeeds |
( |
float |
width | ) |
|
|
private |
◆ renderProfile()
| void SquadPlannerScene::renderProfile |
( |
float |
width | ) |
|
|
private |
◆ update()
| void SquadPlannerScene::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 |
◆ season
| int SquadPlannerScene::season = 0 |
|
private |
◆ season_year
| std::uint16_t SquadPlannerScene::season_year = 0 |
|
private |
◆ selected
| PlayerID SquadPlannerScene::selected = 0 |
|
private |
◆ stale
| bool SquadPlannerScene::stale = false |
|
private |
A status changed: rebuild after this frame.
◆ views
| std::array<View, 2> SquadPlannerScene::views |
|
private |
This season, next season.
The documentation for this class was generated from the following files: