Add header comments to the source files
Every source file in ui, app, game, formats, cli, audio and launch that had none now starts with a short English comment: what it implements, what state it owns and how it relates to its neighbours (request/acknowledge flow, pairs of files, random generator use). Comment lines only; the full build and the runnable tests are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aa6ec96305
commit
287b5a9251
324 files changed
+1186
No files matched your search
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the achievements screen declared in achievements.hpp: achievements_from_game() builds the
|
||||
// read-only per-season state (league, cup and Europe result text and graph position) from the game, and
|
||||
// AchievementsScreen renders it over the supplied underlay and answers pointer input.
|
||||
// The only request it can raise is a close request; it never writes game state.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/achievements.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Achievements screen (manager career history): one league/cup/Europe result triple per season, up to 50 seasons.
|
||||
// Owns AchievementsState (copied from the game by achievements_from_game, plus the captured desktop underlay)
|
||||
// and AchievementsScreen, which renders it and only reports a close request through pending().
|
||||
// The implementation is in achievements.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests for the achievements projection and screen (ui/achievements.hpp).
|
||||
#include "../../tests/test_inputs.hpp"
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the advertising screen declared in advertising.hpp: building AdvertisingState from the game
|
||||
// (contracts, offers, spending, texts), rendering, and turning clicks into AdvertisingRequest values.
|
||||
// Also holds the monthly finance preview formulas that finance_totals.cpp reuses through
|
||||
// original_finance_preview(). Game changes happen only when the session accepts a request.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "game/environment.hpp"
|
||||
#include "ui/advertising.hpp"
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Advertising (sponsor) screen: board contracts, shirt sponsor, television rights, offers and spending.
|
||||
// Owns AdvertisingState (a read-only copy built by advertising_from_game, tagged with a revision) and the
|
||||
// AdvertisingRequest values the screen raises (accept offer, set spending, check renewal).
|
||||
// Also exposes original_finance_preview(), the monthly income/expense preview shared with the statistics
|
||||
// pages and finance_totals.hpp. Implementation: advertising.cpp.
|
||||
// Request/acknowledge flow: a request carries manager, club and revision so the session can reject stale input.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the advertising projection, rendering and request handling (ui/advertising.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/advertising.hpp"
|
||||
#include "ui/source_notice_test_helpers.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the all-time table declared in alltime_table.hpp: alltime_table_from_game() collects and sorts
|
||||
// the per-club records for the chosen nation, and AllTimeTableScreen draws the table and buttons and queues
|
||||
// requests for the owning screen. It does not modify game state.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "alltime_table.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// All-time table screen (cumulative points and goals per club, selectable by nation, absolute or relative).
|
||||
// Owns AllTimeTableState (copied from the game, with the parent underlay) and AllTimeTableScreen, which
|
||||
// raises AllTimeRequest values (close, select nation, toggle relative) through pending().
|
||||
// The owning screen applies them and rebuilds the state. Implementation: alltime_table.cpp.
|
||||
#pragma once
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the all-time table projection and ordering (ui/alltime_table.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "alltime_table.hpp"
|
||||
#include "game/table.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the analytics page declared in analytics.hpp: analytics_from_game() copies the six series and
|
||||
// the saved flag byte, and AnalyticsScreen draws the chart over the parent underlay and handles the metric
|
||||
// and scale buttons. A flag change is only a pending request until the owner acknowledges it.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/analytics.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Analytics statistics page: six data series with per-metric toggles and an absolute/relative scale switch.
|
||||
// Owns AnalyticsState (values copied from the game, never simulated, plus the parent underlay) and
|
||||
// AnalyticsScreen. Toggles raise AnalyticsRequest values carrying expected and target flag bytes;
|
||||
// the owner persists the flags and calls acknowledge(), or reject() to drop the request.
|
||||
// Implementation: analytics.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests for the analytics projection, toggles and acknowledgement (ui/analytics.hpp).
|
||||
#include "../../tests/test_inputs.hpp"
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the balance plan screen declared in balance_plan.hpp: balance_from_game() builds the state from
|
||||
// the game and a plan draft, and BalanceScreen renders rows, calculator and notice dialogs, handles pointer,
|
||||
// key and text input, and queues BalanceRequest values for the session instead of editing the plan itself.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/balance_plan.hpp"
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Balance plan (budget) screen with its calculator dialog and notices.
|
||||
// Owns BalanceState (a BalancePlanDraft copy plus captured desktop underlay) and BalanceScreen.
|
||||
// Actions (edit row, cycle view, take actuals, close, confirm close) become BalanceRequest values tagged with
|
||||
// a BalanceIdentity (revision, scope, sequence); the session applies them, and reject_action() reports refusal.
|
||||
// Time-driven parts (notice timer, calculator flash) are fed by the caller through millisecond tick calls.
|
||||
// Implementation: balance_plan.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the balance plan projection, calculator and requests (ui/balance_plan.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/balance_plan.hpp"
|
||||
#include "ui/setup.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the bank screen declared in bank.hpp: bank_from_game() builds the state (including formatted
|
||||
// number texts and credit lender candidates) from the game, and BankScreen draws the finance, share, fund
|
||||
// and credit views and converts input into BankRequest values. State changes happen only after the session
|
||||
// accepts a request.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/bank.hpp"
|
||||
#include "ui/game_end.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Bank screen: account and fixed deposit, stock and fund trading, stock tips, and bank or inter-manager credit.
|
||||
// Owns BankState (a read-only copy of balances, prices, holdings and credit offers built by bank_from_game,
|
||||
// tagged with a revision) and BankScreen. Money-moving actions are BankRequest values (kind, amount, asset
|
||||
// index, expected credit terms) that the session validates against the revision before applying.
|
||||
// Implementation: bank.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the bank projection, rendering and request validation (ui/bank.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/bank.hpp"
|
||||
#include "ui/source_notice_test_helpers.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements CalendarScreen from calendar.hpp: draws the July-to-June calendar grid and day information from
|
||||
// a CalendarState, tracks the selected day, and turns clicks in reschedule mode into RescheduleAction requests.
|
||||
// It pairs with calendar_state.cpp, which builds the state; this file changes no game data.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/calendar.hpp"
|
||||
#include "game/schedule.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Season calendar screen (July to June grid) including the reschedule-match mode.
|
||||
// CalendarScreen renders a CalendarState (built in calendar_state.cpp) and raises a RescheduleAction
|
||||
// (move or undo a league match to a target day) through pending_reschedule(); the owner applies it and
|
||||
// answers with acknowledge_reschedule() or reject_reschedule(). calendar_cell() gives the cell geometry.
|
||||
// Implementation: calendar.cpp; the read-only projection lives in calendar_state.hpp/calendar_state.cpp.
|
||||
#pragma once
|
||||
|
||||
#include "formats/font.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements calendar_from_game() and reschedule_calendar_from_game() declared in calendar_state.hpp.
|
||||
// They project the saved season into CalendarState (dates, competition bitmaps, matchday ordinals,
|
||||
// reschedule options) without preparing fixtures, advancing the date or consuming random numbers.
|
||||
// The projection feeds CalendarScreen in calendar.cpp.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/calendar_state.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Read-only projection of the saved season calendar for the calendar screen (calendar.hpp).
|
||||
// CalendarState holds one CalendarDayProjection per display day (starting on July 1, with leading days
|
||||
// bridging to the saved calendar words) and, in reschedule mode, the movable matches and their target days.
|
||||
// Built by calendar_from_game() and reschedule_calendar_from_game() in calendar_state.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the club info screen declared in club_info.hpp: club_info_from_game() builds the player rows
|
||||
// (including loan projections and manager board data for human clubs), and ClubInfoScreen renders both data
|
||||
// views and converts button and row clicks into ClubInfoRequest values. It does not change the game itself.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/club_info.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Club info screen: the squad list of a club with two data views, statistics, category change and a jump
|
||||
// into the player detail card. ClubInfoProjection is the owned, read-only input built by club_info_from_game();
|
||||
// the screen raises ClubInfoRequest values (close, toggle view, statistics, category, player detail) that the
|
||||
// session or flow handles. The same projection is also used for the lineup screen.
|
||||
// Implementation: club_info.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the player detail card declared in club_player_detail.hpp: club_player_detail_from_game() copies
|
||||
// club, nationality and offer data into the projection, and ClubPlayerDetailScreen renders the card over the
|
||||
// parent frame and turns presses and releases into ClubPlayerDetailRequest values for the caller to handle.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/club_player_detail.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Club player detail card shown above a club info page.
|
||||
// ClubPlayerDetailProjection is built by club_player_detail_from_game() from a redraw produced by the engine
|
||||
// once per card rebuild; render, move, press and release never touch game state or the random generators.
|
||||
// ClubPlayerDetailScreen raises ClubPlayerDetailRequest values (close, redraw card, national action, offer
|
||||
// action) and keeps the parent frame it is drawn over. Implementation: club_player_detail.cpp.
|
||||
#pragma once
|
||||
|
||||
#include "game/club_player_detail.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the contracts screen declared in contracts.hpp: contracts_from_game() builds the player rows
|
||||
// and premiums from the game, and ContractsScreen renders list, negotiation and insurance views and converts
|
||||
// input into ContractRequest values. Applying an offer or insurance is left to the session.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/contracts.hpp"
|
||||
#include "ui/game_end.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Contracts screen: player list with remaining months, salary demands, offers, bonuses and insurance.
|
||||
// ContractsState is a read-only copy built by contracts_from_game() (tagged with revision and request id base);
|
||||
// ContractsScreen raises ContractRequest values (request demands, submit offer, submit bonuses, insure player)
|
||||
// that carry request id, revision and quote id so the session can reject stale input.
|
||||
// Implementation: contracts.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the contracts projection and request flow (ui/contracts.hpp).
|
||||
#include "ui/contracts.hpp"
|
||||
#include "ui/source_notice_test_helpers.hpp"
|
||||
#include "ui/manager.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the cup draw screen declared in cup_draw.hpp: cup_draw_from_game() copies the drawn clubs
|
||||
// or group table rows into a CupDrawProjection, and CupDrawScreen draws it. It is presentation only and
|
||||
// does not change cup or game state.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/cup_draw.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Cup draw screen: shows a cup round draw (or group overview) as captured at a hook of the season engine.
|
||||
// CupDrawProjection is an owned snapshot (entry order, heading, footer, group rows); the renderer never
|
||||
// advances cup state or consumes either game random generator. Built by cup_draw_from_game(),
|
||||
// presented by CupDrawScreen. Implementation: cup_draw.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements DeskDrawerRenderer and source_drawer_team() declared in desk_drawers.hpp: loads the drawer icons
|
||||
// and font and draws each drawer kind from the read-only DeskState. It is used by DesktopScreen
|
||||
// (desktop.cpp) and writes only into the target image.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/desk_drawers.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Drawer content for the manager desk (desktop.hpp): folder, rank curve, recent matches, head-to-head,
|
||||
// rank/strength, opponent name and badge views.
|
||||
// DeskDrawerRenderer draws only the content; the caller keeps the native drawer frame. The paired-drawer
|
||||
// selection helper source_drawer_team() maps a drawer kind to a team from the DeskState.
|
||||
// Implementation: desk_drawers.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the desk record pages declared in desk_records.hpp: fair_play_state_from_game() projects the
|
||||
// fair play rows for a league, and DeskRecordsScreen renders the fair play or highscore page and forwards
|
||||
// input to the embedded alternate score calculator (game_end_alternate.hpp) when that variant is active.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/desk_records.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Desk record pages: the fair play table and the highscore view, with a calculator variant for the alternate
|
||||
// score screen. DeskRecordsState is built from the game (fair_play_state_from_game) or supplied with a
|
||||
// highscore projection; the highscore file update is done by the caller before constructing the state.
|
||||
// DeskRecordsScreen only renders and reports closed(). Implementation: desk_records.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the DeskState builders declared in desk_state.hpp (desk_from_game, desk_from_save,
|
||||
// load_reference_desk, desk_json) and the validation of profile and state. It projects saved blocks,
|
||||
// the club roster, calendar date, table position and automation formation into the read-only structure
|
||||
// rendered by DesktopScreen.
|
||||
#include "formats/native_save_version.hpp"
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// DeskState: the copyable, read-only state the manager desk (desktop.hpp) renders, including setup options,
|
||||
// managers, dates, opponent history, rank curves and the saved desk layout.
|
||||
// Built by desk_from_game()/desk_from_save() in desk_state.cpp. Engine changes are never made here;
|
||||
// the desk raises explicit DeskRequest values instead. Runtime club ids are not master database ids.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements DesktopScreen declared in desktop.hpp: loads the desk art and fonts, renders icons and drawers
|
||||
// (via desk_drawers.cpp), handles pointer, key and timer events, queues DeskRequest values, and applies
|
||||
// acknowledged DeskState updates. It also provides desk_request_json() and desk_menu_name().
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/desktop.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Manager desk screen: the main hub with icons, drawers, folders and the quickbar.
|
||||
// DesktopScreen renders a DeskState and turns input into a single DeskRequest (open menu, advance turn,
|
||||
// change layout/option/ticket price, end session). A request waits for acknowledge() with a strictly newer
|
||||
// revision, so repeated input never advances time twice; reject_action() changes nothing.
|
||||
// Sound ids are handed out through take_sound_ids(); the application owns playback. Implementation: desktop.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests for the desk state projection, DesktopScreen input and request flow (ui/desktop.hpp, ui/desk_state.hpp).
|
||||
#include "../../tests/runtime_fixture_tables.hpp"
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the environment screen declared in environment.hpp: environment_from_game() fills the view and
|
||||
// the formatted costs, EnvironmentScreen renders it over the underlay and converts clicks and keys into
|
||||
// EnvironmentRequest values; environment_notice_dialog() builds the accompanying notice projection.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/environment.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Environment screen (stadium surroundings and youth work): levels for several cost items with formatted costs.
|
||||
// EnvironmentView is a read-only copy built by environment_from_game(), tagged with a revision and owner
|
||||
// request. EnvironmentScreen raises EnvironmentRequest values (set item level) that the session applies and
|
||||
// confirms through acknowledge() or refuses with reject_action(). environment_notice_dialog() builds a
|
||||
// notice dialog projection. Implementation: environment.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests for the environment view, rendering and requests (ui/environment.hpp).
|
||||
#include "../../tests/runtime_fixture_tables.hpp"
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the finance totals page declared in finance_totals.hpp: finance_totals_from_game() collects the
|
||||
// row values and formats them with the game's currency settings, and FinanceTotalsScreen draws them.
|
||||
// Row 4 is a group separator without a value. Presentation only.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "finance_totals.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Finance totals page (eleven rows of club income and expenses with formatted amounts).
|
||||
// finance_totals_from_game() builds the read-only FinanceTotals; the monthly values reuse the finance preview
|
||||
// from advertising.cpp. FinanceTotalsScreen only renders over the supplied underlay and raises no requests.
|
||||
// Implementation: finance_totals.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Tests for the finance totals projection (ui/finance_totals.hpp).
|
||||
#include "../../tests/runtime_fixture_tables.hpp"
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements StartupFlow declared in flow.hpp: owns the currently open screen objects, forwards clicks, keys,
|
||||
// text, holds and timer events to the active one, and converts their pending requests into FlowResult values
|
||||
// for the session. Which screen is shown next is decided here.
|
||||
#include "ui/flow.hpp"
|
||||
#include "ui/source_hold.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// StartupFlow: the screen controller that routes input to the setup, manager, desktop and submenu screens
|
||||
// and returns one FlowResult per event. FlowResult carries the FlowRequest kind plus the typed request of
|
||||
// whichever screen raised it (desk, contracts, advertising, league family, statistics and others).
|
||||
// It is a value boundary for the engine adapter: it uses no random numbers and writes no saves;
|
||||
// the session performs the action and calls the matching acknowledge or reject method. Implementation: flow.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements FriendlyMatchScreen and friendly_calendar_cell() declared in friendly_match.hpp: renders the
|
||||
// stages from opponent list to booking, handles input, and builds FriendlyMatchRequest values for the
|
||||
// controller to validate and execute.
|
||||
#include "ui/friendly_match.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Friendly match booking screen: opponent choice, venue, quote and cost confirmation, calendar date choice,
|
||||
// owner approval and booking. FriendlyStage tracks the progress; FriendlyMatchRequest (quote or book) is a
|
||||
// controller-facing value to which the app adds and validates revision, manager and request id before calling
|
||||
// the engine helpers. The screen itself does not change game state. Implementation: friendly_match.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the friendly match screen stages and requests (ui/friendly_match.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/friendly_match.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the end-of-career screens declared in game_end.hpp (highscore, final messages, tax dialog,
|
||||
// program error screen) and wrap_source_text(). Each screen loads its own art and font and renders from
|
||||
// values supplied by the caller; nothing here changes game state.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/game_end.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// End-of-career presentation: highscore list, final messages, tax dialog and program error screen.
|
||||
// The highscore and final screens are drawing-only: values and order are resolved by the caller and no career
|
||||
// state is mutated; acknowledgement is owned by the application loop. Also exposes wrap_source_text(), the
|
||||
// word and hyphen wrapping of the original text routine (optionally justified), reusable by text-only UI code.
|
||||
// Implementation: game_end.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the alternate score screen declared in game_end_alternate.hpp: loading assets, the calculator
|
||||
// buttons and presets, text and mouse input, the point-by-point drawing phase and rendering of each phase.
|
||||
// It reports state through phase(), value() and accepted_value(); the caller decides what to do with them.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/game_end_alternate.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Alternate score screen at the end of a career: a calculator dialog to choose a value, then the points are
|
||||
// drawn one pixel at a time and acknowledged. The screen owns its assets (load_game_end_alternate_score_assets)
|
||||
// and has no GameState or random generator access. The caller owns presentation timing, source waits and the
|
||||
// career lifecycle, and calls advance_point()/finish_points() between presented frames.
|
||||
// Implementation: game_end_alternate.cpp; embedded by desk_records.hpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the tax animation declared in game_end_tax_animation.hpp: decoding the animation script bytes
|
||||
// into steps, loading the art, and advancing the screen one step at a time (copy rectangles, present by
|
||||
// swapping buffers, optional full-frame copy). Timing is only reported, never waited on here.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/game_end_tax_animation.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tax animation shown at the end of a career: a script of rectangle copies and waits decoded from executable
|
||||
// data (decode_tax_animation_script) and played step by step by GameEndTaxAnimationScreen.
|
||||
// The renderer has no game state, random generator or event loop; callers present each frame and wait the
|
||||
// reported milliseconds. It keeps two buffers so the next dialog can use the correct backdrop.
|
||||
// Implementation: game_end_tax_animation.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for source text wrapping and end-of-career rendering (ui/game_end.hpp).
|
||||
#include "ui/game_end.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tiny helper for showing host directory paths in the UI. The legacy font has no usable backslash glyph,
|
||||
// so save_directory_label() always formats paths with portable forward separators.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the incoming transfer screen declared in incoming_transfer.hpp: building the decision view from
|
||||
// the game (including the pending-decision variant), rendering bids, player data and notices, and converting
|
||||
// input into requests. The transfer itself is performed only by the session.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/incoming_transfer.hpp"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Incoming transfer offers: the decision screen where a manager reviews bids on a listed player (four raw
|
||||
// bid slots) and accepts or declines. IncomingTransferDecisionView is a read-only copy built from the game;
|
||||
// each UI row keeps the engine's bid slot index. The screen raises requests for the session, which applies
|
||||
// the transaction. Implementation: incoming_transfer.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the incoming transfer decision view and requests (ui/incoming_transfer.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/incoming_transfer.hpp"
|
||||
#include "ui/source_notice_test_helpers.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the indoor standings page declared in indoor_standings.hpp: indoor_standings_from_game() copies
|
||||
// the ranking and title holders from the game, and IndoorStandingsScreen draws the table, footer and prizes.
|
||||
// Presentation only; it changes no game state.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/indoor_standings.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Indoor tournament standings page: a copied ranking of clubs by points, title holders and prize texts.
|
||||
// indoor_standings_from_game() builds the read-only IndoorStandingsState; IndoorStandingsScreen only
|
||||
// renders it and raises no requests. No draw or qualification is written here.
|
||||
// Implementation: indoor_standings.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Shared request types for the family of league screens (table, pairings and the strengths page).
|
||||
// StrengthsIdentity is the ownership token (manager, club, league, revision, scope, sequence, family
|
||||
// nonce) that guards against stale requests; LeagueFamilyRequest describes navigation, close, team info,
|
||||
// control, league selection and table dialog replies. league_table.hpp and league_pairings.hpp use these
|
||||
// types to talk to the session.
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the league pairings screen declared in league_pairings.hpp: league_pairings_from_game() formats
|
||||
// the rows and button texts from the game, and LeaguePairingsScreen renders them and queues requests for the
|
||||
// session. It also defines the constants and time conversion helper declared in the header.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/league_pairings.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// League pairings screen: the matches of a round with names, results, first legs, dates and temperature,
|
||||
// and an active-match packet. LeaguePairingsState is built by league_pairings_from_game() and tagged with
|
||||
// a LeaguePairingsIdentity (revision, scope, sequence). The screen raises LeaguePairingsRequest values, and
|
||||
// in family mode shares an identity with the league family (league_family_request.hpp).
|
||||
// Implementation: league_pairings.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the league table declared in league_table.hpp: league_table_from_game() and
|
||||
// league_tables_from_game() project engine tables into rows (ranks, form bits, highlight colours),
|
||||
// and LeagueTableScreen renders them and the control buttons, handles input, and acknowledges family
|
||||
// selector changes. Requests go to the session; no game state is written here.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/league_table.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// League table screen: rank, record, goals, points, previous rank and form per club, with round-range,
|
||||
// forecast and league selection controls. LeagueTableState is built by league_table_from_game() from an
|
||||
// explicit LeagueTableProjectionContext; the screen raises LeagueFamilyRequest values and, in family mode,
|
||||
// shares an identity with the other league family screens (league_family_request.hpp).
|
||||
// Implementation: league_table.cpp; the numeric dialog lives in league_table_range_dialog.hpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements LeagueTableRangeDialog declared in league_table_range_dialog.hpp: draws the calculator-style
|
||||
// numeric dialog over its backdrop, handles pointer, key and text input, and produces a
|
||||
// TableRangeDialogOutcome. It requires an explicit text mode from the caller instead of guessing a setting.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/league_table_range_dialog.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Numeric dialog used by the league table to pick a start or end matchday, plus the stake dialog profile.
|
||||
// LeagueTableRangeDialog is an isolated presenter: the caller supplies the already rendered frame under the
|
||||
// modal, and the object owns that backdrop and its resources. It has no GameState, random generator, save
|
||||
// writer or mutation callback; the result (accept or cancel, value, position) is returned to the caller.
|
||||
// Implementation: league_table_range_dialog.cpp.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#pragma once
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the league table projection, controls and family requests (ui/league_table.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/league_table.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the lineup screen declared in lineup.hpp: lineup_from_game() and lineup_from_save() project
|
||||
// the squad, and LineupScreen renders both data views and converts clicks into LineupRequest values.
|
||||
// Swapping or preparing is done by the session, not here.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/lineup.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Lineup screen: the squad list of the human club with two data views and the actions swap players,
|
||||
// prepare lineup, open player info and open pitch. LineupState is a read-only copy built by lineup_from_game()
|
||||
// or lineup_from_save(), tagged with a revision. LineupScreen raises LineupRequest values that the session
|
||||
// applies; LineupPlayer rows are also reused by the contracts and live intervention headers.
|
||||
// Implementation: lineup.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the lineup projection, rendering and request flow (ui/lineup.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "../../tests/test_inputs.hpp"
|
||||
#include "ui/lineup.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the live intervention helpers and dialog declared in live_intervention.hpp: building and
|
||||
// validating substitution, formation, position and tactic proposals against the copied context, serialising
|
||||
// a proposal to JSON, and rendering the lineup, formation and tactics pages. Proposals are descriptive only.
|
||||
#include "ui/live_intervention.hpp"
|
||||
|
||||
#include "formats/binary.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Manager intervention while a watched match is paused: substitutions, formation, player position and
|
||||
// tactic changes. LiveInterventionContext is a copied view; the propose_live_* helpers only turn an existing
|
||||
// preparation request into a LiveInterventionProposal (accepted or rejected with a reason) and never write
|
||||
// GameState or draw random numbers. LiveInterventionDialog presents the pages and reports resume or
|
||||
// proposal events. Implementation: live_intervention.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for live intervention proposals (ui/live_intervention.hpp).
|
||||
#include "ui/live_intervention.hpp"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements the live matchday overview declared in live_matchday.hpp: LiveMatchdayScreen and the live
|
||||
// projection functions declared there. It only observes engine data copied into frames and does not change
|
||||
// the running match.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/live_matchday.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Live matchday overview: all matches of the day with minute, scores, statistics, attendance and weather,
|
||||
// plus chance, booking and shoot-out projections. LiveMatchdayFrame is an owned copy made synchronously from
|
||||
// the engine's observation hook. LiveScoreReveal keeps preview scores until the result hook so simulation is
|
||||
// not delayed. LiveMatchdayScreen renders frames. Implementation: live_matchday.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements RealityFieldScreen declared in live_reality.hpp: loads the ball and digit atlases for the chosen
|
||||
// ball style and renders a RealityMotionFrame over the supplied backdrop. Drawing only.
|
||||
#include "ui/live_reality.hpp"
|
||||
|
||||
#include "ui/setup.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Reality field renderer: only the lower pitch field of the live reality view, drawn from a motion frame
|
||||
// and a backdrop. Header and reporter text are owned by the caller; this renderer cannot select a pass,
|
||||
// a player or a match result. Implementation: live_reality.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for LiveScoreReveal keeping preview scores until the result hook (ui/live_matchday.hpp).
|
||||
#include "ui/live_matchday.hpp"
|
||||
#include <stdexcept>
|
||||
using namespace bmh::ui;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements live_set_piece_frames() declared in live_set_piece.hpp: derives the camera and sprite
|
||||
// placement of a set-piece scene from the event data and the executable layout, using only values that the
|
||||
// engine has already drawn.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/live_set_piece.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Set-piece animation frames: live_set_piece_frames() converts the values already drawn by the match engine
|
||||
// for a set piece into camera positions and sprites. It rejects missing, mismatched or surplus draws instead
|
||||
// of inventing a scene. Implementation: live_set_piece.cpp.
|
||||
#pragma once
|
||||
|
||||
#include "formats/le.hpp"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Timing helpers for the live match views: live_delay_milliseconds() converts the saved delay setting into
|
||||
// milliseconds (values below six are halved, zero disables the pause), and kOriginalRefreshHz records the
|
||||
// fixed 70 Hz mode 13h timing that is independent of the host monitor.
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements MailboxScreen declared in mailbox_screen.hpp: validates the state, lays out and renders the
|
||||
// message pages and buttons, handles clicks and keys, and queues keep or delete requests for the app.
|
||||
// It pairs with mailbox_state.cpp, which builds the state it displays.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/mailbox_screen.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Mailbox screen: paged view of the manager's messages with keep and delete actions.
|
||||
// MailboxScreen renders a MailboxState (see mailbox_state.hpp) over the desktop background. Article actions
|
||||
// are requests (MailboxActionRequest) held in pending(); only the app adapter writes recipient and keep
|
||||
// bits, then calls acknowledge() with the new state or reject(). Navigation changes neither the
|
||||
// notification flag nor random generators. Implementation: mailbox_screen.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for MailboxScreen paging, rendering and request handling (ui/mailbox_screen.hpp).
|
||||
#include "ui/mailbox_screen.hpp"
|
||||
|
||||
#include <functional>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements mailbox_state_from_game() declared in mailbox_state.hpp: filters the mailbox entries for one
|
||||
// manager, decodes their text and orders them for the reader. It does not modify messages or the date.
|
||||
// The result feeds MailboxScreen in mailbox_screen.cpp.
|
||||
#include "ui/mailbox_state.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Read-only projection of the mailbox for one manager. MailboxMessage keeps the exact raw entry, recipient and
|
||||
// keep masks and the decoded text; MailboxState lists them in reader order (date, then physical slot).
|
||||
// mailbox_state_from_game() never marks, deletes or keeps messages. MailboxActionRequest describes a keep or
|
||||
// delete action together with the expected raw entry for stale-state checks. Used by mailbox_screen.hpp.
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the mailbox projection: filtering, ordering and identity (ui/mailbox_state.hpp).
|
||||
#include "ui/mailbox_state.hpp"
|
||||
|
||||
#include <functional>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements ManagerScreen and load_selection_context() declared in manager.hpp: renders the selection,
|
||||
// name entry, club picker and confirmation dialogs, handles click, move and text input and keeps the
|
||||
// current ManagerChoice. The flow applies the confirmed choice; this file does not initialise a career.
|
||||
#include "formats/badge_policy.hpp"
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/manager.hpp"
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Manager selection screens: selection, name edit, club picker, confirmation and accepted view for one
|
||||
// manager slot. ManagerScreen owns only UI choices (ManagerChoice) and works with a SelectionContext, the
|
||||
// club order loaded by load_selection_context(). ManagerChoice uses master database club ids, not the remapped
|
||||
// team ids of an initialised career; the roster revision guards against applying an id to a later club order.
|
||||
// Implementation: manager.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for ManagerScreen selection, name entry and confirmation (ui/manager.hpp).
|
||||
#include <cstdio>
|
||||
#include <stdexcept>
|
||||
#include <numeric>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements matchday_results_from_snapshot() declared in matchday_results.hpp: converts a turn result
|
||||
// snapshot and the game state into MatchdayResults groups (names, scores, status, cup decision), without
|
||||
// modifying either. The result is displayed by matchday_results_screen.cpp.
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/matchday_results.hpp"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Immutable UI copy of the results of one matchday, grouped by competition. MatchResultStatus and
|
||||
// MatchdayResultMatch carry UTF-8 names and goals (a cup match also records whether it was decided in
|
||||
// extra time or on penalties), plus league or cup ids. It owns no engine references.
|
||||
// Built by matchday_results_from_snapshot() in matchday_results.cpp and shown by MatchdayResultsScreen.
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Implements MatchdayResultsScreen declared in matchday_results_screen.hpp: lays the groups and matches out
|
||||
// into rows and pages, draws names and scores with the original font, and handles paging and close input.
|
||||
// Presentation only; the data comes from matchday_results.cpp.
|
||||
#include "ui/matchday_results_screen.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Paged screen listing the matchday results held in a MatchdayResults copy (matchday_results.hpp).
|
||||
// MatchdayResultsScreen renders pages, handles click and key input and reports close_requested(); it also
|
||||
// offers state_json(). It holds no engine access. Implementation: matchday_results_screen.cpp.
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Tests for the matchday results projection and screen (ui/matchday_results.hpp, ui/matchday_results_screen.hpp).
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "ui/matchday_results_screen.hpp"
|
||||
|
||||
|
||||
Loaded 100 of 324 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user