Player12
An open source football management simulator
Loading...
Searching...
No Matches
preseason.h File Reference
#include <cstdint>
#include <memory>
#include <optional>
#include <vector>
#include "global/types.h"
#include "model/gamedate.h"

Go to the source code of this file.

Classes

struct  FriendlySlot
 A pre-season friendly of the managed club. More...
 
struct  OpponentOption
 A club that can be invited to a friendly. More...
 
struct  CampQuote
 Cost, dates and effect of a training camp. More...
 
struct  FriendlySuggestion
 A suggested friendly (the assistant's plan). More...
 
struct  PreseasonState
 The season's pre-season choices (persisted). More...
 
class  PreseasonPlanner
 Friendlies, tour and training camp of the managed club. More...
 

Namespaces

namespace  Preseason
 Pricing of camps and tours.
 

Enumerations

enum class  TrainingCamp : std::uint8_t { None = 0 , Domestic , Abroad , COUNT }
 Pre-season training camp (values are persisted). More...
 
enum class  OpponentLevel : std::uint8_t { Weaker = 0 , Similar , Stronger , COUNT }
 Opponent strength relative to the managed club. More...
 

Functions

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

Variables

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

Enumeration Type Documentation

◆ OpponentLevel

enum class OpponentLevel : std::uint8_t
strong

Opponent strength relative to the managed club.

Enumerator
Weaker 
Similar 
Stronger 
COUNT 

◆ TrainingCamp

enum class TrainingCamp : std::uint8_t
strong

Pre-season training camp (values are persisted).

Enumerator
None 
Domestic 
Abroad 
COUNT