Player12
An open source football management simulator
Loading...
Searching...
No Matches
season_review.h File Reference
#include <cstdint>
#include <map>
#include <memory>
#include <optional>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "global/types.h"
#include "model/board.h"
#include "model/gamedate.h"
#include "model/standings.h"

Go to the source code of this file.

Classes

struct  SeasonVerdictInputs
 What the board weighs at the end of a season. More...
 
struct  SeasonVerdictResult
 The verdict and the grades behind it. More...
 
struct  SeasonReview
 The managed club's season as the end-of-season summary shows it (persisted once per season). More...
 
struct  SeasonReviewModel::EventNames
 
class  SeasonArchive
 Final league tables of past seasons and the managed club's season reviews (tables SeasonTables and SeasonReviews). More...
 

Namespaces

namespace  SeasonReviewModel
 The board's season-end verdict and the season-end news.
 

Enumerations

enum class  SeasonVerdict : std::uint8_t {
  Delighted = 0 , Pleased , Satisfied , Warned ,
  Sacked
}
 The board's verdict on the manager's season (values are persisted). More...
 

Functions

SeasonVerdictResult SeasonReviewModel::judge (const SeasonVerdictInputs &inputs)
 
const char * SeasonReviewModel::verdictKey (SeasonVerdict verdict)
 
const char * SeasonReviewModel::gradeKey (ObjectiveGrade grade)
 
void SeasonReviewModel::postEvents (Inbox &inbox, const GameDateValue &date, const SeasonReview &review, const EventNames &names)
 

Variables

constexpr int SeasonReviewModel::MIN_MATCHES_TO_JUDGE = 12
 
constexpr float SeasonReviewModel::SACK_CONFIDENCE = 25.0f
 
constexpr int SeasonReviewModel::SURVIVAL_MARGIN = 3
 

Enumeration Type Documentation

◆ SeasonVerdict

enum class SeasonVerdict : std::uint8_t
strong

The board's verdict on the manager's season (values are persisted).

Enumerator
Delighted 

Well beyond what the board asked for.

Pleased 

Objectives met with something to spare.

Satisfied 

Objectives broadly met, or too early to judge.

Warned 

Objectives missed: next season is on notice.

Sacked 

The board ends the manager's contract.