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

Namespaces

namespace  PlayerAgent
 The player's agent in the managed club's purchase and contract talks: what he asks for and what he says each round.
 

Functions

std::uint32_t PlayerAgent::standardAgentFee (ContractKind kind, std::uint32_t transfer_fee, std::uint32_t weekly_wage)
 
std::uint32_t PlayerAgent::lowestAgentFee (std::uint32_t standard)
 
std::uint32_t PlayerAgent::agentFeeAsk (const PlayerContext &context, std::uint32_t standard, std::uint8_t round)
 
Demands PlayerAgent::demands (const PlayerContext &context, std::uint32_t transfer_fee, std::uint8_t round, std::uint8_t years)
 
ContractOffer PlayerAgent::askedOffer (const Demands &demands, std::uint8_t years)
 
Reply PlayerAgent::respond (const PlayerContext &context, const ContractOffer &offer, std::uint8_t round, std::uint32_t transfer_fee)
 
const char * PlayerAgent::openingLine (const PlayerContext &context)
 
const char * PlayerAgent::purchaseLine (const ClubResponse &response, bool would_join, const PlayerContext &context)