Player12
An open source football management simulator
Loading...
Searching...
No Matches
TransferTuning::Offer Struct Referencefinal

#include <transfer_tuning.h>

Static Public Attributes

static constexpr float OPENING_ACCEPT_SHARE = 1.0f
 
static constexpr float ACCEPT_SHARE = 0.97f
 
static constexpr float REJECT_SHARE = 0.60f
 
static constexpr float DEFERRED_DISCOUNT_PER_YEAR = 0.06f
 
static constexpr float ADD_ON_WEIGHT = 0.4f
 
static constexpr float ADD_ON_CREDIT_CAP = 0.25f
 
static constexpr std::uint8_t MAX_SELL_ON_PERCENT = 30
 
static constexpr float SELL_ON_WEIGHT_YOUNG = 0.5f
 
static constexpr float SELL_ON_WEIGHT_SENIOR = 0.2f
 
static constexpr int SELL_ON_YOUNG_MAX_AGE = 23
 
static constexpr float SELL_ON_CREDIT_CAP = 0.10f
 
static constexpr std::uint8_t MIN_UPFRONT_PERCENT = 20
 
static constexpr std::uint8_t MAX_INSTALMENT_YEARS = 4
 
static constexpr std::uint8_t AI_UPFRONT_PERCENT = 50
 
static constexpr std::uint32_t AI_INSTALMENT_THRESHOLD = 5'000'000
 
static constexpr std::uint8_t MAX_CLUB_ROUNDS = 4
 
static constexpr int AGREEMENT_VALID_DAYS = 7
 
static constexpr int INCOMING_OFFER_DAYS = 5
 
static constexpr std::uint32_t AGENT_FEE_PERCENT = 10
 
static constexpr std::uint32_t FREE_AGENT_FEE_WEEKS = 8
 

Detailed Description

Structure of a club-to-club offer and the seller's reading of it.

Member Data Documentation

◆ ACCEPT_SHARE

constexpr float TransferTuning::Offer::ACCEPT_SHARE = 0.97f
staticconstexpr

◆ ADD_ON_CREDIT_CAP

constexpr float TransferTuning::Offer::ADD_ON_CREDIT_CAP = 0.25f
staticconstexpr

◆ ADD_ON_WEIGHT

constexpr float TransferTuning::Offer::ADD_ON_WEIGHT = 0.4f
staticconstexpr

Probability weight of conditional add-ons, and their credit cap as a share of the base fee (add-ons are 10-25% of fees). [P]

◆ AGENT_FEE_PERCENT

constexpr std::uint32_t TransferTuning::Offer::AGENT_FEE_PERCENT = 10
staticconstexpr

Club agent fees are ~10% of fee spending (FIFA 2025). [S]

◆ AGREEMENT_VALID_DAYS

constexpr int TransferTuning::Offer::AGREEMENT_VALID_DAYS = 7
staticconstexpr

An agreed fee stays valid this long for the contract talks.

◆ AI_INSTALMENT_THRESHOLD

constexpr std::uint32_t TransferTuning::Offer::AI_INSTALMENT_THRESHOLD = 5'000'000
staticconstexpr

AI deals above this fee are spread over instalments. [P]

◆ AI_UPFRONT_PERCENT

constexpr std::uint8_t TransferTuning::Offer::AI_UPFRONT_PERCENT = 50
staticconstexpr

◆ DEFERRED_DISCOUNT_PER_YEAR

constexpr float TransferTuning::Offer::DEFERRED_DISCOUNT_PER_YEAR = 0.06f
staticconstexpr

Seller discount of deferred money per year of delay. [P]

◆ FREE_AGENT_FEE_WEEKS

constexpr std::uint32_t TransferTuning::Offer::FREE_AGENT_FEE_WEEKS = 8
staticconstexpr

Agent fee on a free move, in weeks of the new wage. [P]

◆ INCOMING_OFFER_DAYS

constexpr int TransferTuning::Offer::INCOMING_OFFER_DAYS = 5
staticconstexpr

Incoming offers expire after this many days without an answer.

◆ MAX_CLUB_ROUNDS

constexpr std::uint8_t TransferTuning::Offer::MAX_CLUB_ROUNDS = 4
staticconstexpr

Counter-offers before the seller ends the talks. [P]

◆ MAX_INSTALMENT_YEARS

constexpr std::uint8_t TransferTuning::Offer::MAX_INSTALMENT_YEARS = 4
staticconstexpr

◆ MAX_SELL_ON_PERCENT

constexpr std::uint8_t TransferTuning::Offer::MAX_SELL_ON_PERCENT = 30
staticconstexpr

Sell-on clauses (10-20% typical, capped at 30%), valued by the seller as a share of the fee times this weight (young players resell more often). Credit capped at a share of the fee. [P]

◆ MIN_UPFRONT_PERCENT

constexpr std::uint8_t TransferTuning::Offer::MIN_UPFRONT_PERCENT = 20
staticconstexpr

Instalments: 40-60% upfront, rest over 2-4 years. [P]

◆ OPENING_ACCEPT_SHARE

constexpr float TransferTuning::Offer::OPENING_ACCEPT_SHARE = 1.0f
staticconstexpr

An opening bid must reach the full valuation; once talks are under way offers worth this share of it close the deal.

◆ REJECT_SHARE

constexpr float TransferTuning::Offer::REJECT_SHARE = 0.60f
staticconstexpr

Below this share of the asking fee the seller walks away. [P]

◆ SELL_ON_CREDIT_CAP

constexpr float TransferTuning::Offer::SELL_ON_CREDIT_CAP = 0.10f
staticconstexpr

◆ SELL_ON_WEIGHT_SENIOR

constexpr float TransferTuning::Offer::SELL_ON_WEIGHT_SENIOR = 0.2f
staticconstexpr

◆ SELL_ON_WEIGHT_YOUNG

constexpr float TransferTuning::Offer::SELL_ON_WEIGHT_YOUNG = 0.5f
staticconstexpr

◆ SELL_ON_YOUNG_MAX_AGE

constexpr int TransferTuning::Offer::SELL_ON_YOUNG_MAX_AGE = 23
staticconstexpr

The documentation for this struct was generated from the following file: