|
Player12
An open source football management simulator
|
#include <cstdint>#include <memory>#include <unordered_map>#include <vector>#include "global/types.h"Go to the source code of this file.
Classes | |
| struct | MenteeState |
| One youngster in a mentoring group. More... | |
| struct | MentoringGroup |
| A senior player guiding up to three youngsters. More... | |
| class | MentoringSystem |
| Mentoring groups of the managed club. More... | |
Namespaces | |
| namespace | Mentoring |
| Bounded, slow personality transfer from mentor to youngster. | |
Enumerations | |
| enum class | MentoringError : std::uint8_t { None = 0 , UnknownPlayer , NotSameClub , MentorTooYoung , MenteeTooOld , SamePlayer , AlreadyMentor , AlreadyMentee , MentorIsMentee , GroupFull , UnknownGroup } |
| Why a mentoring change was refused. More... | |
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) |
Variables | |
| constexpr int | Mentoring::MENTOR_MIN_AGE = 25 |
| constexpr int | Mentoring::MENTEE_MAX_AGE = 23 |
| constexpr std::size_t | Mentoring::MAX_MENTEES = 3 |
| constexpr float | Mentoring::WEEKLY_RATE = 0.006f |
| constexpr float | Mentoring::MAX_WEEKLY_STEP = 0.1f |
| constexpr float | Mentoring::MAX_TOTAL_SHIFT = 10.0f |
| constexpr float | Mentoring::MAX_DEVELOPMENT_BONUS = 0.04f |
| constexpr float | Mentoring::UNHAPPY_MENTOR_MORALE = 35.0f |
| constexpr float | Mentoring::GLOOM_PER_WEEK = 0.5f |
|
strong |
Why a mentoring change was refused.
| const char * mentoringErrorKey | ( | MentoringError | error | ) |
Language key of error (e.g. "MENTORING_ERROR_GROUP_FULL").