|
Player12
An open source football management simulator
|
Transfer market inside the management shell. More...
#include <transfer_market_scene.h>
Classes | |
| struct | Filters |
| struct | HistoryRow |
| struct | ListingDialog |
| struct | LoanDialog |
| struct | LoanRow |
| struct | OfferDialog |
| struct | OfferRow |
| struct | ReleaseDialog |
| struct | SortState |
| struct | SquadRow |
| struct | TalkRow |
| struct | TargetRow |
Public Member Functions | |
| TransferMarketScene (GUIView *parent) | |
| TransferMarketScene (GUIView *parent, PlayerID player) | |
| ~TransferMarketScene () override=default | |
| void | update (float deltaTime) override |
| Updates scene logic. | |
| SceneID | getID () const override |
| Gets the ID of the scene. | |
| void | onResume () 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 | 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 |
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 | Availability : uint8_t { ANY , LISTED , LOAN_LISTED , FREE_AGENTS , PRE_CONTRACT , COUNT } |
| enum class | ContractFilter : uint8_t { ANY , EXPIRING , TWO_YEARS , COUNT } |
Private Member Functions | |
| void | refreshData () |
| void | openPendingDeal () |
| void | refreshNeeds () |
| void | refreshTargets () |
| void | refreshRecommended () |
| void | refreshTargetFlags () |
| void | rederiveRows (std::vector< TargetRow > &rows) const |
| int64_t | affordableValueCap () const |
| std::vector< TargetRow > | searchRows (ScoutSearchFilter search, bool affordable) const |
| void | refreshShortlist () |
| void | refreshSquad () |
| void | refreshOffers () |
| void | refreshLoans () |
| void | refreshHistory () |
| TargetRow | makeTargetRow (const ScoutedPlayerRow &scouted) const |
| void | applyTargetFilter () |
| void | sortTargets (const std::vector< TargetRow > &rows, std::vector< size_t > &visible, const SortState &sort) const |
| void | renderSummary () |
| void | renderSearchTab () |
| void | renderRecommendedTab () |
| void | renderFilters () |
| void | renderTargetTable (const char *id, const std::vector< TargetRow > &rows, std::vector< size_t > &visible, SortState &sort) |
| void | renderTargetActions (const TargetRow &row) |
| void | renderHiddenTargetValues (const TargetRow &row) const |
| void | renderOffersTab () |
| void | renderLoansTab () |
| void | renderSquadTab () |
| void | renderHistoryTab () |
| void | openOfferDialog (const TargetRow &row) |
| void | openContractDialog (PlayerID player_id) |
| void | openLoanDialog (const TargetRow &row) |
| void | renderOfferDialog () |
| void | renderLoanDialog () |
| void | renderListingDialog () |
| void | renderReleaseDialog () |
| void | renderReasons (const std::vector< TransferNegotiation::Reason > &reasons, const ImVec4 &color) const |
| void | renderClubResponse (const TransferNegotiation::ClubResponse &response, const std::string &detail) const |
| void | renderDialogColumns (const std::function< void()> &terms, const std::function< void()> &summary) const |
| bool | wideDialogs () const |
| float | dialogWidth () const |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Transfer market inside the management shell.
Tabs: Recommended (affordable players who fit a squad need), Search (scouted estimates with filters, affordable players by default), Shortlist, Offers & talks (incoming offers, open negotiations, pre-contracts), Loans, My squad (list, loan-list, release) and History. Dialogs: structured transfer offer, personal terms, loan offer, talks over an incoming bid, asking price and release confirmation.
Every table is built from cached view models in refresh(); rendering only draws them (clipped), never queries SQL or sorts per frame.
|
strongprivate |
|
strongprivate |
|
explicit |
Opens the market with the deal dialog for player already open: a transfer offer, or contract talks for a free agent.
|
overridedefault |
|
private |
Highest estimated value the budget can reach (0 = nothing).
|
private |
|
private |
|
overridevirtual |
|
private |
|
inlineoverrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
inlineoverridevirtual |
Back from a profile: the search results stay, their flags refresh.
Reimplemented from ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
Re-derives cached rows after an action (drops players who left).
|
inlineoverrideprotectedvirtual |
Entering the screen re-runs the scouting search; actions only refresh the rows (see refreshData()).
Reimplemented from ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
Terms and summary side by side on wide screens, stacked otherwise.
|
private |
|
private |
Values of the columns the last target table hid for lack of width.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Scouted rows for search: capped to the budget when affordable, plus every free agent (no fee) the filters allow.
|
private |
|
overridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |
Board has frozen transfer spending.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Player whose deal dialog opens on entry (0 = none).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Columns the target table shows at the current width (UI::ColumnMask).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |