Player12
An open source football management simulator
Loading...
Searching...
No Matches
buyer_negotiation.cpp File Reference
#include "model/buyer_negotiation.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <limits>
#include <utility>
#include "model/transfer_tuning.h"

Namespaces

namespace  BuyerNegotiation
 How an AI club negotiates to buy one of the managed club's players, and how the player feels about the move.
 

Functions

bool BuyerNegotiation::byBuyer (Move move)
 
const char * BuyerNegotiation::moveKey (Move move)
 
const char * BuyerNegotiation::whyKey (Why why)
 
double BuyerNegotiation::appearanceOdds (std::uint16_t target)
 
double BuyerNegotiation::goalOdds (std::uint16_t target)
 
double BuyerNegotiation::sellOnCostPerPercent (int age)
 
double BuyerNegotiation::buyerCost (const OfferTerms &terms, int age)
 
std::uint32_t BuyerNegotiation::agentFee (std::uint32_t fee)
 
std::int64_t BuyerNegotiation::signingCash (const OfferTerms &terms)
 
bool BuyerNegotiation::deadlinePressure (int days_to_deadline)
 
double BuyerNegotiation::effectiveCeiling (const BuyerContext &context)
 
BuyerReply BuyerNegotiation::respond (const BuyerContext &context, const OfferTerms &current, const OfferTerms &asked, bool firm, double roll)
 
OfferTerms BuyerNegotiation::openingBid (std::uint32_t ceiling, int age, std::uint8_t rivals, double share_roll, double add_on_roll)
 
std::uint8_t BuyerNegotiation::drawPatience (double roll, int days_to_deadline)
 
int BuyerNegotiation::replyDelay (double roll, int days_to_deadline)
 
const char * BuyerNegotiation::stanceKey (PlayerStance stance)
 
PlayerStance BuyerNegotiation::stanceFor (const StanceFacts &facts)
 
double BuyerNegotiation::termsRefusalChance (PlayerStance stance)
 
bool BuyerNegotiation::isBigBid (const OfferTerms &terms, int, std::uint32_t market_value)
 
RejectionEffect BuyerNegotiation::rejectionEffect (PlayerStance stance, bool big_bid, std::uint8_t ambition)
 

Variable Documentation

◆ appearance_share

double appearance_share = 0.0

◆ appearance_target

std::uint16_t appearance_target = 0

◆ goal_share

double goal_share = 0.0

◆ goal_target

std::uint16_t goal_target = 0

◆ instalment_years

std::uint8_t instalment_years = 0

◆ sell_on_percent

std::uint8_t sell_on_percent = 0

◆ upfront_percent

std::uint8_t upfront_percent = 100