Player12
An open source football management simulator
Loading...
Searching...
No Matches
types.h File Reference
#include <cstdint>

Go to the source code of this file.

Classes

struct  Matchup
 Represents a single match between two teams. More...
 
struct  Vector2F
 A simple 2D float vector for pitch coordinates. More...
 

Typedefs

using LeagueID = uint8_t
 Type alias for League identifiers.
 
using TeamID = uint16_t
 Type alias for Team identifiers.
 
using PlayerID = uint32_t
 Type alias for Player identifiers.
 

Enumerations

enum class  SeasonPhase : uint8_t { PRE_SEASON , REGULAR_SEASON , POST_SEASON , OFF_SEASON }
 Represents the different phases of a season. More...
 
enum class  MatchType : uint8_t { LEAGUE = 0 , FRIENDLY = 1 , CUP = 2 , CONTINENTAL = 3 }
 Represents the type or category of a match. More...
 
enum class  PlayerRole : uint8_t {
  GK , CB , LB , RB ,
  CDM , CM , CAM , LM ,
  RM , LW , RW , ST ,
  UNKNOWN
}
 Represents a specific tactical role on the pitch. More...
 

Typedef Documentation

◆ LeagueID

using LeagueID = uint8_t

Type alias for League identifiers.

◆ PlayerID

using PlayerID = uint32_t

Type alias for Player identifiers.

◆ TeamID

using TeamID = uint16_t

Type alias for Team identifiers.

Enumeration Type Documentation

◆ MatchType

enum class MatchType : uint8_t
strong

Represents the type or category of a match.

Enumerator
LEAGUE 

A regular league match

FRIENDLY 

A non-competitive friendly match

CUP 

A cup tournament match

CONTINENTAL 

A continental club competition match

◆ PlayerRole

enum class PlayerRole : uint8_t
strong

Represents a specific tactical role on the pitch.

Enumerator
GK 

Goalkeeper

CB 

Center Back

LB 

Left Back

RB 

Right Back

CDM 

Central Defensive Midfielder

CM 

Central Midfielder

CAM 

Central Attacking Midfielder

LM 

Left Midfielder

RM 

Right Midfielder

LW 

Left Winger

RW 

Right Winger

ST 

Striker

UNKNOWN 

◆ SeasonPhase

enum class SeasonPhase : uint8_t
strong

Represents the different phases of a season.

Enumerator
PRE_SEASON 

Phase before the regular season begins

REGULAR_SEASON 

The main competitive phase of the season

POST_SEASON 

Phase after the regular season (e.g., playoffs)

OFF_SEASON 

Period between seasons with no matches