Player12
An open source football management simulator
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <cstdint>
12
13// ID Types
15using LeagueID = uint8_t;
16
18using TeamID = uint16_t;
19
21using PlayerID = uint32_t;
22
27enum class SeasonPhase : uint8_t
28{
33};
34
39enum class MatchType : uint8_t
40{
41 LEAGUE = 0,
42 FRIENDLY = 1,
43 CUP = 2,
44 CONTINENTAL = 3
45};
46
57
62enum class PlayerRole : uint8_t
63{
64 GK,
65 CB,
66 LB,
67 RB,
68 CDM,
69 CM,
70 CAM,
71 LM,
72 RM,
73 LW,
74 RW,
75 ST,
77};
78
84{
85 float x;
86 float y;
87};
Represents a single match between two teams.
Definition types.h:52
MatchType type
Definition types.h:55
TeamID home_team_id
Definition types.h:53
TeamID away_team_id
Definition types.h:54
A simple 2D float vector for pitch coordinates.
Definition types.h:84
float y
Definition types.h:86
float x
Definition types.h:85
MatchType
Represents the type or category of a match.
Definition types.h:40
uint8_t LeagueID
Type alias for League identifiers.
Definition types.h:15
uint16_t TeamID
Type alias for Team identifiers.
Definition types.h:18
SeasonPhase
Represents the different phases of a season.
Definition types.h:28
uint32_t PlayerID
Type alias for Player identifiers.
Definition types.h:21
PlayerRole
Represents a specific tactical role on the pitch.
Definition types.h:63