Player12
An open source football management simulator
Loading...
Searching...
No Matches
transfer_market.h File Reference
#include <cstddef>
#include <cstdint>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
#include "global/types.h"
#include "model/buyer_negotiation.h"
#include "model/gamedate.h"
#include "model/inbox.h"
#include "model/loan_negotiation.h"
#include "model/transfer_listing.h"
#include "model/transfer_negotiation.h"

Go to the source code of this file.

Classes

struct  TransferRecord
 
struct  TransferObligation
 
struct  LoanDeal
 
struct  PreContractDeal
 
struct  PlayerMarketFlags
 
struct  OfferRound
 
struct  IncomingOffer
 
struct  TalksCooldown
 
struct  Negotiation
 
class  TransferMarket
 Deals, loans, pre-contracts, payments and history of the market. More...
 
struct  TransferMarket::Deal
 
struct  TransferMarket::AiNeed
 

Enumerations

enum class  TransferKind : std::uint8_t {
  Permanent = 0 , Free , Loan , LoanReturn ,
  PreContract , Release
}
 Type of a completed move (values are persisted). More...
 
enum class  ObligationKind : std::uint8_t {
  Instalment = 0 , AppearanceBonus , GoalBonus , SellOn ,
  LoanUnplayedFee , WageRise , AppearanceFee , AgentFee
}
 Future payments created by a deal (values are persisted). More...
 
enum class  OfferStatus : std::uint8_t { AwaitingClub = 0 , AwaitingBuyer }
 

Functions

const char * transferKindKey (TransferKind kind)
 

Enumeration Type Documentation

◆ ObligationKind

enum class ObligationKind : std::uint8_t
strong

Future payments created by a deal (values are persisted).

Enumerator
Instalment 

amount due on due.

AppearanceBonus 

amount due at target appearances for the payer.

GoalBonus 

amount due at target goals for the payer.

SellOn 

payee gets amount % of the player's next fee.

LoanUnplayedFee 

Loan clause: the borrower (payer) pays amount to the parent when the player made fewer than target appearances for it by due.

WageRise 

Contract: his wage rises by amount % on due, then yearly.

AppearanceFee 

Contract: amount for each appearance for the payer beyond baseline (raised as they are paid).

AgentFee 

Agent fee of a pre-contract, paid when it is executed.

◆ OfferStatus

enum class OfferStatus : std::uint8_t
strong

Whose move an incoming offer waits for (values are persisted).

Enumerator
AwaitingClub 

The managed club has to answer.

AwaitingBuyer 

The buyer answers the club's counter on respond_on.

◆ TransferKind

enum class TransferKind : std::uint8_t
strong

Type of a completed move (values are persisted).

Enumerator
Permanent 

Club-to-club move with a fee.

Free 

Free agent signing.

Loan 
LoanReturn 
PreContract 

Bosman move agreed six months ahead.

Release 

Contract terminated by the club.

Function Documentation

◆ transferKindKey()

const char * transferKindKey ( TransferKind  kind)

Language key naming kind (e.g. "TRANSFER_KIND_LOAN").