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

Suspension rules of a competition (every-fifth-yellow style). More...

#include <discipline.h>

Public Attributes

uint8_t yellow_card_threshold = 5
 
uint8_t yellow_accumulation_ban = 1
 
uint8_t second_yellow_ban = 1
 
uint8_t straight_red_ban = 1
 
uint8_t repeat_red_extra = 1
 

Detailed Description

Suspension rules of a competition (every-fifth-yellow style).

Member Data Documentation

◆ repeat_red_extra

uint8_t DisciplineRules::repeat_red_extra = 1

Added per earlier red this season.

◆ second_yellow_ban

uint8_t DisciplineRules::second_yellow_ban = 1

◆ straight_red_ban

uint8_t DisciplineRules::straight_red_ban = 1

◆ yellow_accumulation_ban

uint8_t DisciplineRules::yellow_accumulation_ban = 1

◆ yellow_card_threshold

uint8_t DisciplineRules::yellow_card_threshold = 5

Every Nth yellow triggers a ban.


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