Player12
An open source football management simulator
Loading...
Searching...
No Matches
Continental::CompetitionRules Struct Reference

#include <continental.h>

Public Attributes

LeagueID id = 0
 
const char * name_key = ""
 
Continent continent = Continent::Europe
 
uint8_t tier = 1
 
uint8_t clubs = 36
 
uint8_t matches = 8
 
std::array< uint8_t, 8 > base_places {}
 
std::array< uint8_t, 2 > weekday_offsets {}
 
int final_offset = 14
 
Prizes prizes
 
double participation_bonus = 0.0
 
double ranking_bonus = 0.0
 
double knockout_bonus = 0.0
 

Detailed Description

Format, access list, dates and prize table of one competition.

Member Data Documentation

◆ base_places

std::array<uint8_t, 8> Continental::CompetitionRules::base_places {}

League-phase places by association rank (index 0 = best); the last value applies to every lower rank. Free places are then shared out one at a time in rank order.

◆ clubs

uint8_t Continental::CompetitionRules::clubs = 36

League-phase clubs.

◆ continent

Continent Continental::CompetitionRules::continent = Continent::Europe

◆ final_offset

int Continental::CompetitionRules::final_offset = 14

Final: days after the last league Saturday (neutral venue).

◆ id

LeagueID Continental::CompetitionRules::id = 0

◆ knockout_bonus

double Continental::CompetitionRules::knockout_bonus = 0.0

◆ matches

uint8_t Continental::CompetitionRules::matches = 8

League-phase matches per club (two per pot).

◆ name_key

const char* Continental::CompetitionRules::name_key = ""

◆ participation_bonus

double Continental::CompetitionRules::participation_bonus = 0.0

Coefficient bonuses: league-phase participation, best league-phase ranking (decreasing linearly to 0) and knockout participation.

◆ prizes

Prizes Continental::CompetitionRules::prizes

◆ ranking_bonus

double Continental::CompetitionRules::ranking_bonus = 0.0

◆ tier

uint8_t Continental::CompetitionRules::tier = 1

◆ weekday_offsets

std::array<uint8_t, 2> Continental::CompetitionRules::weekday_offsets {}

Day offsets from the week's Tuesday for the two halves of a round.


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