Player12
An open source football management simulator
Loading...
Searching...
No Matches
league.h File Reference
#include <cstdint>
#include <map>
#include <optional>
#include <string>
#include <vector>
#include "global/types.h"

Go to the source code of this file.

Classes

class  League
 Represents a football league containing teams and a leaderboard. More...
 

Enumerations

enum class  TieBreakRule : uint8_t { GOAL_DIFFERENCE = 0 , HEAD_TO_HEAD = 1 }
 How teams level on points are ordered (varies by country). More...
 

Enumeration Type Documentation

◆ TieBreakRule

enum class TieBreakRule : uint8_t
strong

How teams level on points are ordered (varies by country).

Enumerator
GOAL_DIFFERENCE 

Points, goal difference, goals scored, then head-to-head.

HEAD_TO_HEAD 

Points, head-to-head points and goal difference, then overall goal difference and goals scored.