Player12
An open source football management simulator
Loading...
Searching...
No Matches
buyer_negotiation.h File Reference
#include <cstdint>
#include <vector>
#include "model/transfer_negotiation.h"

Go to the source code of this file.

Classes

struct  BuyerNegotiation::BuyerContext
 
struct  BuyerNegotiation::BuyerReply
 
struct  BuyerNegotiation::StanceFacts
 
struct  BuyerNegotiation::RejectionEffect
 

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.
 

Enumerations

enum class  BuyerNegotiation::Move : std::uint8_t {
  BuyerNegotiation::Bid = 0 , BuyerNegotiation::Improved , BuyerNegotiation::FinalOffer , BuyerNegotiation::Restated ,
  BuyerNegotiation::Counter , BuyerNegotiation::AskingPrice , BuyerNegotiation::Accepted , BuyerNegotiation::WalkedAway ,
  BuyerNegotiation::COUNT
}
 
enum class  BuyerNegotiation::Why : std::uint8_t {
  BuyerNegotiation::WithinBudget , BuyerNegotiation::Improved , BuyerNegotiation::MoreInstalments , BuyerNegotiation::AddOnsInsteadOfCash ,
  BuyerNegotiation::AddOnsTrimmed , BuyerNegotiation::SellOnCut , BuyerNegotiation::CashLimited , BuyerNegotiation::FinalOffer ,
  BuyerNegotiation::Unrealistic , BuyerNegotiation::Insulted , BuyerNegotiation::OutOfPatience , BuyerNegotiation::RivalBids ,
  BuyerNegotiation::DeadlineDay , BuyerNegotiation::WageBudget , BuyerNegotiation::COUNT
}
 
enum class  BuyerNegotiation::Decision : std::uint8_t { BuyerNegotiation::Accept , BuyerNegotiation::Counter , BuyerNegotiation::WalkAway }
 
enum class  BuyerNegotiation::PlayerStance : std::uint8_t {
  BuyerNegotiation::AskedToLeave , BuyerNegotiation::WantsBiggerClub , BuyerNegotiation::Open , BuyerNegotiation::HappyHere ,
  BuyerNegotiation::Reluctant
}
 

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)