Player12
An open source football management simulator
Loading...
Searching...
No Matches
Preseason Namespace Reference

Pricing of camps and tours. More...

Functions

CampQuote campQuote (TrainingCamp camp, double season_income, const GameDateValue &first_friendly)
 
std::int64_t tourFee (double season_income, std::uint8_t opponent_reputation)
 
bool levelMatches (OpponentLevel level, std::uint8_t own, std::uint8_t other)
 

Variables

constexpr int TOUR_MATCHES_FOR_REPUTATION = 2
 
constexpr int LEVEL_GAP = 8
 
constexpr int CAMP_DAYS = 6
 

Detailed Description

Pricing of camps and tours.

A week-long camp between the first and second friendly sharpens the squad (match fitness), drills the tactic and bonds the group; abroad it costs more and does more. Tour matches abroad earn an appearance fee that grows with the club's income and the opponent's stature, minus travel; two tour matches in a season add a reputation point. [P]

Function Documentation

◆ campQuote()

CampQuote Preseason::campQuote ( TrainingCamp  camp,
double  season_income,
const GameDateValue &  first_friendly 
)

Camp quote from the club's season income and the first friendly.

◆ levelMatches()

bool Preseason::levelMatches ( OpponentLevel  level,
std::uint8_t  own,
std::uint8_t  other 
)

Whether other fits level for a club of reputation own.

◆ tourFee()

std::int64_t Preseason::tourFee ( double  season_income,
std::uint8_t  opponent_reputation 
)

Net appearance fee of one tour match (fee minus travel).

Variable Documentation

◆ CAMP_DAYS

constexpr int Preseason::CAMP_DAYS = 6
inlineconstexpr

◆ LEVEL_GAP

constexpr int Preseason::LEVEL_GAP = 8
inlineconstexpr

Reputation gap separating weaker / similar / stronger opponents.

◆ TOUR_MATCHES_FOR_REPUTATION

constexpr int Preseason::TOUR_MATCHES_FOR_REPUTATION = 2
inlineconstexpr