|
Player12
An open source football management simulator
|
Full profile of one player: bio and contract, fitness and form, attributes grouped by category, position suitability, season and career statistics, transfer history and context actions. More...
#include <player_profile_scene.h>
Classes | |
| struct | AttributeLine |
| An attribute; low == high == value when known exactly. More... | |
| struct | AttributeSection |
| struct | ReportSummary |
| The latest scout report, formatted for display. More... | |
| struct | StatsRow |
| One statistics row (a competition this season, or a season). More... | |
| struct | TransferLine |
| One move in the player's transfer history. More... | |
Public Member Functions | |
| PlayerProfileScene (GUIView *parent, PlayerID playerId) | |
| void | update (float deltaTime) override |
| Updates scene logic. | |
| SceneID | getID () const override |
| Gets the ID of the scene. | |
| std::optional< NavEntry > | historyEntry () const override |
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 |
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 | renderHeader () |
| void | renderActions () |
| void | renderBio (const Player &player, float width, float height) const |
| void | renderStatus (float width, float height) const |
| void | renderAttributes (float width, float height) const |
| void | renderSuitability (float width, float height) const |
| void | renderScouting (float width, float height) |
| void | renderStatistics (float width, float height) |
| void | renderStatsTable (const std::vector< StatsRow > &rows, bool career) const |
| void | renderTransfers () const |
| void | renderDialogs () |
| void | sendScout () |
| const Player * | player () const |
| bool | isOwnPlayer () const |
Private Attributes | |
| PlayerID | player_id |
| PlayerView::PlayerRow | row |
| std::string | club_name |
| std::string | nationality |
| std::string | clause_text |
| std::vector< PlayerView::RoleFit > | fits |
| std::vector< AttributeSection > | sections |
| std::vector< StatsRow > | season_rows |
| std::vector< StatsRow > | career_rows |
| std::vector< TransferLine > | transfers |
| PlayerDynamics | dynamics |
| float | form = 0.0f |
| uint8_t | league_ban = 0 |
| uint8_t | cup_ban = 0 |
| const char * | squad_role_key = nullptr |
| float | potential_low = 0.0f |
| float | potential_high = 0.0f |
| bool | scouted = false |
| uint8_t | knowledge = 0 |
| std::string | overall_range |
| std::optional< ReportSummary > | latest_report |
| bool | shortlisted = false |
| bool | being_scouted = false |
| int64_t | scout_cost = 0 |
| bool | window_open = false |
| bool | list_confirm_requested = false |
| bool | renew_requested = false |
| ContractTalksDialog | contract_talks |
| PlayerTalkDialog | talk_dialog |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
| class | GameFlowTest_ManagementScreensMidSeason_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Full profile of one player: bio and contract, fitness and form, attributes grouped by category, position suitability, season and career statistics, transfer history and context actions.
The managed club's players are shown exactly. Every other player is shown through the club's scouting knowledge only (GameController::getScoutedView): estimated attributes with their likely range, an estimated overall and value, the latest scout report, and recruitment actions (scout, shortlist, make an offer). Hidden true attributes are never displayed for them.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
The screen's sidebar section; detail screens override it.
Reimplemented from ManagementScene.
|
private |
|
overrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
private |
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
friend |
|
friend |
|
private |
|
private |
|
private |
His release clause, empty if none.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |