Player12
An open source football management simulator
Loading...
Searching...
No Matches
BoardState Struct Reference

The board's view of the manager of the managed club. More...

#include <board.h>

Public Attributes

TeamID team_id = 0
 
std::uint16_t season_year = 0
 
BoardObjective objective = BoardObjective::MidTable
 
std::uint8_t expected_position = 0
 
std::uint8_t target_position = 0
 
float confidence = 60.0f
 
std::uint8_t low_reviews = 0
 
std::uint8_t league_matches = 0
 
bool dismissed = false
 
CupObjective cup_objective = CupObjective::None
 
FinanceObjective finance_objective = FinanceObjective::WithinWageBudget
 
std::uint8_t youth_target = 0
 
std::int64_t start_balance = 0
 
bool targets_set = false
 
std::uint8_t result_count = 0
 
std::array< float, RESULT_WINDOW > recent_deltas {}
 

Static Public Attributes

static constexpr std::size_t RESULT_WINDOW = 8
 

Detailed Description

The board's view of the manager of the managed club.

Member Data Documentation

◆ confidence

float BoardState::confidence = 60.0f

0-100.

◆ cup_objective

CupObjective BoardState::cup_objective = CupObjective::None

◆ dismissed

bool BoardState::dismissed = false

◆ expected_position

std::uint8_t BoardState::expected_position = 0

From the wage-bill rank.

◆ finance_objective

FinanceObjective BoardState::finance_objective = FinanceObjective::WithinWageBudget

◆ league_matches

std::uint8_t BoardState::league_matches = 0

League matches this season.

◆ low_reviews

std::uint8_t BoardState::low_reviews = 0

Consecutive critical reviews.

◆ objective

BoardObjective BoardState::objective = BoardObjective::MidTable

◆ recent_deltas

std::array<float, RESULT_WINDOW> BoardState::recent_deltas {}

Points minus expected points of recent league matches, newest first.

◆ result_count

std::uint8_t BoardState::result_count = 0

◆ RESULT_WINDOW

constexpr std::size_t BoardState::RESULT_WINDOW = 8
staticconstexpr

◆ season_year

std::uint16_t BoardState::season_year = 0

Calendar year the season started.

◆ start_balance

std::int64_t BoardState::start_balance = 0

Cash when the season (job) began.

◆ target_position

std::uint8_t BoardState::target_position = 0

Worst acceptable finish.

◆ targets_set

bool BoardState::targets_set = false

The cup, finance and youth targets were set for this season (false for boards of saves from before them, until the next season start).

◆ team_id

TeamID BoardState::team_id = 0

◆ youth_target

std::uint8_t BoardState::youth_target = 0

Young regulars expected (0 = none).


The documentation for this struct was generated from the following file: