Player12
An open source football management simulator
Loading...
Searching...
No Matches
mentoring.cpp File Reference
#include "model/mentoring.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include "database/gamedata.h"
#include "database/sqlite_rows.h"
#include "model/player.h"

Namespaces

namespace  Mentoring
 Bounded, slow personality transfer from mentor to youngster.
 

Functions

const char * mentoringErrorKey (MentoringError error)
 
float Mentoring::receptiveness (int age)
 
float Mentoring::influence (int mentor_age)
 
float Mentoring::weeklyShift (float mentor_value, float mentee_value, float receptiveness, float influence, float already_shifted)
 
float Mentoring::developmentMultiplier (std::uint8_t mentor_professionalism)
 

Function Documentation

◆ mentoringErrorKey()

const char * mentoringErrorKey ( MentoringError  error)

Language key of error (e.g. "MENTORING_ERROR_GROUP_FULL").