Files
Dreierpack-Manager/src/ui/pending_offer.hpp
T
ClaudeandClaude Sonnet 5.5 287b5a9251 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>
2026-11-06 09:15:23 +01:00

47 lines
2.6 KiB
C++

// SPDX-License-Identifier: GPL-3.0-only
// Pure presenters that turn pending club/player events (transfer offers, loan returns, advertising renewals,
// stadium construction notices, season-ticket compensation) into TaxDialogProjection dialogs, plus the
// transfer-decision panel projection. Text stays in the original single-byte encoding until drawn.
// No state is owned and no game state is changed; the session shows the dialogs and applies the answers.
// Implemented in pending_offer.cpp.
#pragma once
#include <string_view>
#include "formats/le.hpp"
#include "game/pending_offer.hpp"
#include "game/desk_actions.hpp"
#include "game/weekly.hpp"
#include "ui/game_end.hpp"
#include "ui/incoming_transfer.hpp"
namespace bmh::ui {
// Pure Source presenters for the manual DispatchClubPlayerPendingOffers hooks. Text remains in the
// game's original ISO646-DE encoding until the renderer draws it.
// Includes the exact restored post-national-desk owner from retained records;
// it never inserts that owner into the active runtime manager list.
int pending_offer_owner_team(const GameState&, int manager);
bool pending_offer_spare_buyer(const GameState&, int raw_offer_slot, int expected_team);
TaxDialogProjection pending_offer_question_dialog(const GameState&,
const PendingOfferQuestion&);
TaxDialogProjection loan_return_question_dialog(const GameState&, int manager,
std::string_view original_message);
TaxDialogProjection advertising_renewal_question_dialog(const GameState&, int manager,
const AdvertisingRenewal&);
TaxDialogProjection advertising_renewal_notice_dialog(const GameState&, int manager,
const AdvertisingRenewal&);
TaxDialogProjection pending_offer_notice_dialog(const GameState&,
const PendingOfferNotice&);
TaxDialogProjection transfer_last_week_dialog(const GameState&, const TransferDecisionEvent&);
// Pure Source UI adapter for the stadium payment's nested sponsor/funds notices.
// Composed bodies retain Original ISO646-DE bytes for BMH3 drawing.
TaxDialogProjection construction_notice_dialog(const GameState&, const LeImage&,
const ConstructionNotice&);
TaxDialogProjection season_ticket_compensation_notice_dialog(
const GameState&, const LeImage&, const SeasonTicketCompensationNotice&);
IncomingTransferDecisionState pending_offer_transfer_decision_from_game(
const GameState&, const TransferOfferListView&);
} // namespace bmh::ui