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

#include <transfer_tuning.h>

Static Public Attributes

static constexpr float CEILING_HEADROOM_MIN = 0.20f
 
static constexpr float CEILING_HEADROOM_MAX = 0.60f
 
static constexpr float OPENING_OPTION_CHANCE = 0.30f
 
static constexpr int OPTION_MAX_AGE = 23
 
static constexpr float MAX_OBLIGATION_VALUE = 1.20f
 
static constexpr int RECALL_COST_WEEKS = 4
 
static constexpr std::uint8_t WAGE_SHARE_STEP = 5
 
static constexpr std::uint8_t APPEARANCES_STEP = 5
 
static constexpr std::uint8_t MAX_MIN_APPEARANCES = 30
 
static constexpr float FEE_INSTEAD_OF_WAGES_CHANCE = 0.5f
 

Detailed Description

An AI club negotiating to borrow one of the managed club's players. It reads a loan by its cost: the wage share it pays over the loan, the loan fee, a recall clause (it may lose him mid-season) and the odds of paying the fee for unplayed games. Its wage room caps the share it can take on. Concessions, patience, insults and deadline pressure follow the buyer (Buyer above). [P]

Member Data Documentation

◆ APPEARANCES_STEP

constexpr std::uint8_t TransferTuning::Borrower::APPEARANCES_STEP = 5
staticconstexpr

◆ CEILING_HEADROOM_MAX

constexpr float TransferTuning::Borrower::CEILING_HEADROOM_MAX = 0.60f
staticconstexpr

◆ CEILING_HEADROOM_MIN

constexpr float TransferTuning::Borrower::CEILING_HEADROOM_MIN = 0.20f
staticconstexpr

Headroom of the ceiling over the cost of its opening offer.

◆ FEE_INSTEAD_OF_WAGES_CHANCE

constexpr float TransferTuning::Borrower::FEE_INSTEAD_OF_WAGES_CHANCE = 0.5f
staticconstexpr

Share of answers in which a borrower short of wage room offers a loan fee instead of a bigger share.

◆ MAX_MIN_APPEARANCES

constexpr std::uint8_t TransferTuning::Borrower::MAX_MIN_APPEARANCES = 30
staticconstexpr

◆ MAX_OBLIGATION_VALUE

constexpr float TransferTuning::Borrower::MAX_OBLIGATION_VALUE = 1.20f
staticconstexpr

A mandatory purchase is a decision apart from the loan's cost: the borrower takes one up to MAX_OBLIGATION_VALUE times the player's value, if its budget covers it; above that it offers an option.

◆ OPENING_OPTION_CHANCE

constexpr float TransferTuning::Borrower::OPENING_OPTION_CHANCE = 0.30f
staticconstexpr

Share of opening offers for young players with a purchase option (at OPTION_VALUE_MULTIPLE of the value), and the age limit.

◆ OPTION_MAX_AGE

constexpr int TransferTuning::Borrower::OPTION_MAX_AGE = 23
staticconstexpr

◆ RECALL_COST_WEEKS

constexpr int TransferTuning::Borrower::RECALL_COST_WEEKS = 4
staticconstexpr

A recall clause costs the borrower this many weeks of the full wage.

◆ WAGE_SHARE_STEP

constexpr std::uint8_t TransferTuning::Borrower::WAGE_SHARE_STEP = 5
staticconstexpr

Steps of the terms it proposes (the editor's segments).


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