|
Player12
An open source football management simulator
|
Scouting and recruitment: scouts, assignments, reports, player search on estimated values, shortlist and recruitment focus. More...
#include <scouting_scene.h>
Classes | |
| struct | AssignmentLine |
| struct | ComparisonLine |
| struct | ContinentNode |
| struct | CountryNode |
| struct | EffectLine |
| struct | PlayerLine |
| Display-ready estimated player row. More... | |
| struct | ReportLine |
| struct | ScoutLine |
| One row of the scouts list. More... | |
Public Types | |
| enum class | Tab : uint8_t { OVERVIEW , REPORTS , SEARCH , SHORTLIST , FOCUS } |
| Tabs of the screen. More... | |
Public Member Functions | |
| ScoutingScene (GUIView *parent, Tab initialTab=Tab::OVERVIEW) | |
| 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 Types | |
| enum class | ReportColumn : uint8_t { PLAYER , GRADE , ABILITY , POTENTIAL , FEE , DATE } |
| enum class | SearchColumn : uint8_t { NAME , CLUB , ROLE , AGE , ABILITY , POTENTIAL , KNOWLEDGE , VALUE } |
Private Member Functions | |
| void | rebuildReports () |
| void | rebuildSearch () |
| void | rebuildShortlist () |
| void | rebuildScouts () |
| void | rebuildWorld () |
| void | rebuildScoutDetail () |
| void | rebuildScoutReportList () |
| void | rebuildSendPreview () |
| void | rebuildPlayerMatches () |
| void | sortScoutReports () |
| void | selectScout (uint32_t scoutId) |
| ReportLine | makeReportLine (const ScoutReport &report) const |
| std::string | targetLabel (ScoutTargetKind kind, uint32_t targetId) const |
| std::string | effectText (const EffectFactor &factor) const |
| const ScoutLine * | selectedScoutLine () const |
| PlayerLine | makeLine (const ScoutedPlayerRow &row) const |
| void | sortSearch () |
| void | renderOverview () |
| void | renderScoutList (float width, float height) |
| void | renderScoutDetail (float height) |
| void | renderScoutHeader (const ScoutLine &line) const |
| void | renderActiveAssignment (const ScoutLine &line) |
| void | renderScoutHistory () |
| void | renderScoutReports (const char *id, float height) |
| void | renderSendFlow (const ScoutLine &line) |
| void | renderWorldPicker (float width, float height) |
| void | renderSendSummary (const ScoutLine &line) |
| void | renderReports () |
| void | renderSearch () |
| void | renderSearchFilters () |
| void | renderPlayerTable (const char *id, std::vector< PlayerLine > &lines, float height, bool sortable) |
| void | renderShortlist () |
| void | renderComparison () |
| void | renderFocus () |
| void | renderFocusEditor () |
| void | renderPlayerActions () |
| void | selectPlayer (PlayerID playerId, std::string_view name) |
| void | sendScout (ScoutTargetKind kind, uint32_t targetId) |
| bool | playerCell (PlayerID playerId, const std::string &name, bool selected) |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Scouting and recruitment: scouts, assignments, reports, player search on estimated values, shortlist and recruitment focus.
The first tab is built around the scouts: clicking one opens his page with his live assignment and the reports he filed so far, his past assignments and their reports, or (when he has done nothing yet) the world picker to send him somewhere, with his expected effectiveness and its reasons.
Every figure about another club's player comes from the scouting estimates (GameController::getScoutedView / searchScoutedPlayers), never from the hidden true attributes. Rows are rebuilt on refresh or when a filter changes, never per frame.
|
strongprivate |
|
strongprivate |
|
strong |
|
explicit |
|
private |
|
inlineoverridevirtual |
|
private |
|
private |
|
inlineoverrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
|
private |
|
private |
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
0 = all, 1 = free agents, else leagues[i-2].
|
private |
|
private |
Millions, 0 = any.
|
private |
|
private |
|
private |
|
private |
0 = any, else PlayerRole + 1.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Past assignment shown, 0 = none.
|
private |
|
private |
|
private |
|
private |
Time left before an edited name filter re-runs the search.
|
private |
Effectiveness of the selected scout per picker entry (kind, id).
|
private |
|
private |
|
private |
Columns the player table showed last frame (for the column picker).
|
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 |
|
private |