Player12
An open source football management simulator
Loading...
Searching...
No Matches
board.cpp File Reference
#include "model/board.h"
#include <algorithm>
#include <cmath>
#include "model/world_tuning.h"

Namespaces

namespace  BoardModel
 

Functions

BoardObjective BoardModel::objectiveFor (int expected_position, int league_size)
 
std::uint8_t BoardModel::targetPosition (BoardObjective objective, int league_size)
 
const char * BoardModel::objectiveKey (BoardObjective objective)
 
float BoardModel::expectedPoints (float own_strength, float opponent_strength, bool home)
 
void BoardModel::recordMatch (BoardState &state, float points, float expected_points)
 
BoardReviewOutcome BoardModel::monthlyReview (BoardState &state, int position, int league_size, bool negative_balance, bool over_wage_budget, bool in_season)
 
void BoardModel::seasonReview (BoardState &state, int final_position)
 
void BoardModel::adjustConfidence (BoardState &state, float delta)
 
CupObjective BoardModel::cupObjectiveFor (BoardObjective objective, int tier)
 
FinanceObjective BoardModel::financeObjectiveFor (float tight_budget, std::int64_t balance)
 
std::uint8_t BoardModel::youthTargetFor (float youth_focus)
 
const char * BoardModel::cupObjectiveKey (CupObjective objective)
 
const char * BoardModel::financeObjectiveKey (FinanceObjective objective)
 
const char * BoardModel::youthTargetKey (std::uint8_t target)
 
ObjectiveGrade BoardModel::gradeCup (CupObjective objective, std::optional< int > rounds_left, bool won, bool still_in)
 
const char * BoardModel::targetStatusKey (ObjectiveGrade grade)
 
ObjectiveGrade BoardModel::gradeLeague (int target_position, int position, int league_size)
 
ObjectiveGrade BoardModel::gradeFinances (FinanceObjective objective, std::int64_t balance, std::int64_t start_balance, bool over_wage_budget)
 
ObjectiveGrade BoardModel::gradeYouth (std::uint8_t target, int young_regulars)
 
ProjectQuote BoardModel::quoteProject (FacilityProjectType type, std::uint8_t current_level, std::uint32_t capacity, std::uint8_t reputation, double season_income, std::uint32_t seats)
 
ProjectVerdict BoardModel::reviewProject (const ProjectQuote &quote, const ProjectRequestContext &context)
 
float BoardModel::medicalLayoffMultiplier (std::uint8_t medical_level)
 
const char * BoardModel::projectTypeKey (FacilityProjectType type)
 
const char * BoardModel::projectVerdictKey (ProjectVerdict verdict)