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

Go to the source code of this file.

Classes

struct  LoanNegotiation::BorrowerContext
 
struct  LoanNegotiation::BorrowerReply
 

Namespaces

namespace  LoanNegotiation
 How an AI club negotiates to borrow one of the managed club's players.
 

Enumerations

enum class  LoanNegotiation::Why : std::uint8_t {
  LoanNegotiation::WithinBudget , LoanNegotiation::Improved , LoanNegotiation::WageRoom , LoanNegotiation::FeeInsteadOfWages ,
  LoanNegotiation::ObligationDropped , LoanNegotiation::AppearancesCut , LoanNegotiation::FinalOffer , LoanNegotiation::Unrealistic ,
  LoanNegotiation::Insulted , LoanNegotiation::OutOfPatience , LoanNegotiation::NoWageRoom , LoanNegotiation::DeadlineDay ,
  LoanNegotiation::COUNT
}
 

Functions

const char * LoanNegotiation::whyKey (Why why)
 
bool LoanNegotiation::isValid (const LoanTerms &terms)
 
int LoanNegotiation::loanWeeks (const BorrowerContext &context, LoanDuration duration)
 
double LoanNegotiation::expectedAppearances (const BorrowerContext &context, LoanDuration duration)
 
double LoanNegotiation::unplayedOdds (double expected, std::uint8_t minimum)
 
std::uint8_t LoanNegotiation::maxWageShare (const BorrowerContext &context)
 
double LoanNegotiation::borrowerCost (const BorrowerContext &context, const LoanTerms &terms)
 
double LoanNegotiation::effectiveCeiling (const BorrowerContext &context)
 
bool LoanNegotiation::affordable (const BorrowerContext &context, const LoanTerms &terms)
 
BorrowerReply LoanNegotiation::respond (const BorrowerContext &context, const LoanTerms &current, const LoanTerms &asked, double roll)
 
LoanTerms LoanNegotiation::openingOffer (const BorrowerContext &context, LoanDuration duration, std::uint8_t share, int age, double option_roll)
 
std::uint32_t LoanNegotiation::ceilingFor (const BorrowerContext &context, const LoanTerms &opening, double roll)