Two or three players side by side: attributes on a radar and as bars, ability and potential, this season's numbers and value, wage and contract. Players of other clubs are shown with the club's scouting estimates and their ranges, never their true attributes.
More...
#include <player_compare_scene.h>
|
| | PlayerCompareScene (GUIView *parent, PlayerID first, PlayerID second=0) |
| |
| void | update (float deltaTime) override |
| | Updates scene logic.
|
| |
| SceneID | getID () const override |
| | Gets the ID of the scene.
|
| |
| std::optional< NavEntry > | historyEntry () const override |
| |
| | 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 |
| |
| | 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.
|
| |
Two or three players side by side: attributes on a radar and as bars, ability and potential, this season's numbers and value, wage and contract. Players of other clubs are shown with the club's scouting estimates and their ranges, never their true attributes.
◆ PlayerCompareScene()
- Parameters
-
| first,second | Players to start with (0 = empty slot). |
◆ buildCandidates()
| void PlayerCompareScene::buildCandidates |
( |
| ) |
|
|
private |
◆ filledSlots()
| std::size_t PlayerCompareScene::filledSlots |
( |
| ) |
const |
|
private |
◆ getID()
| SceneID PlayerCompareScene::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.
◆ historyEntry()
| std::optional< NavEntry > PlayerCompareScene::historyEntry |
( |
| ) |
const |
|
inlineoverridevirtual |
The players it was opened with, whatever was picked since.
Reimplemented from ManagementScene.
◆ navSection()
| NavSection PlayerCompareScene::navSection |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ rebuildAxes()
| void PlayerCompareScene::rebuildAxes |
( |
| ) |
|
|
private |
◆ refresh()
| void PlayerCompareScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ renderBars()
| void PlayerCompareScene::renderBars |
( |
float |
width | ) |
|
|
private |
◆ renderContent()
| void PlayerCompareScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderFacts()
| void PlayerCompareScene::renderFacts |
( |
| ) |
|
|
private |
◆ renderPicker()
| void PlayerCompareScene::renderPicker |
( |
std::size_t |
index, |
|
|
float |
width |
|
) |
| |
|
private |
◆ renderRadar()
| void PlayerCompareScene::renderRadar |
( |
float |
width | ) |
|
|
private |
◆ renderSlots()
| void PlayerCompareScene::renderSlots |
( |
| ) |
|
|
private |
◆ seriesColor()
| ImVec4 PlayerCompareScene::seriesColor |
( |
std::size_t |
index | ) |
const |
|
private |
◆ setSlot()
| void PlayerCompareScene::setSlot |
( |
std::size_t |
index, |
|
|
PlayerID |
id |
|
) |
| |
|
private |
◆ update()
| void PlayerCompareScene::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 |
◆ axes
| std::vector<std::string> PlayerCompareScene::axes |
|
private |
Attribute names on the radar (union of the compared players').
◆ axis_labels
| std::vector<std::string> PlayerCompareScene::axis_labels |
|
private |
◆ candidates
| std::vector<Candidate> PlayerCompareScene::candidates |
|
private |
◆ filter
| std::array<char, 48> PlayerCompareScene::filter {} |
|
private |
◆ filtered
| std::vector<std::size_t> PlayerCompareScene::filtered |
|
private |
◆ filtered_query
| std::string PlayerCompareScene::filtered_query |
|
private |
◆ MAX_PLAYERS
| constexpr std::size_t PlayerCompareScene::MAX_PLAYERS = 3 |
|
staticconstexpr |
◆ opened_with
| std::array<PlayerID, 2> PlayerCompareScene::opened_with {} |
|
private |
◆ requested
◆ slots
The documentation for this class was generated from the following files: