59 Team(
TeamID team_id, uint8_t team_league_id, std::string_view team_name,
60 int64_t initial_balance,
61 const std::vector<PlayerID>& initial_player_ids = {},
77 const std::string&
getName()
const;
A club's balance, budgets and dated transaction ledger.
Definition finances.h:83
Singleton class that acts as an in-memory cache for the database state.
Definition gamedata.h:43
Manages the starting XI and reserves of a team.
Definition lineup.h:85
Represents the tactical setup of a team for a match.
Definition strategy.h:61
Represents a football team.
Definition team.h:47
void addAcademyID(PlayerID id)
Adds a player to the club's academy.
Definition team.cpp:90
void addPlayerID(PlayerID id)
Adds a player to the team.
Definition team.cpp:81
void setAcademyMember(PlayerID id, bool academy)
Moves a club player between the senior squad and the academy (use GameData::setAcademyMember,...
Definition team.cpp:97
Strategy team_strategy
Definition team.h:180
Lineup lineup
Definition team.h:181
Strategy & getStrategy()
Gets the team's strategy (non-const).
Definition team.cpp:116
void setLeagueId(LeagueID new_league_id)
Moves the team to another league (promotion/relegation).
Definition team.cpp:74
Finances & getFinances() noexcept
Gets the team's finances (non-const).
Definition team.cpp:174
void setProfile(const ClubProfile &profile)
Replaces the club profile.
Definition team.cpp:179
const std::vector< PlayerID > & getAcademyIDs() const
Player IDs of the club's academy (U18 squad and trialists).
Definition team.cpp:79
std::vector< PlayerID > academy_ids
Definition team.h:178
const std::string & getName() const
Gets the name of the team.
Definition team.cpp:75
TeamID id
Definition team.h:169
const ClubProfile & getProfile() const noexcept
Reputation, stadium, ticket price and facilities.
Definition team.cpp:178
void setRecentForm(std::string_view form)
Restores the recent-form string (persistence).
Definition team.cpp:188
void pushResult(MatchOutcome outcome)
Prepends a result to the recent form.
Definition team.cpp:193
std::vector< PlayerID > player_ids
Definition team.h:177
std::string name
Definition team.h:171
std::uint8_t getReputation() const noexcept
Club reputation (1-100).
Definition team.cpp:180
LeagueID league_id
Definition team.h:170
const std::vector< PlayerID > & getPlayerIDs() const
Player IDs of the senior squad (academy players excluded).
Definition team.cpp:77
std::uint32_t getStadiumCapacity() const noexcept
Stadium capacity in seats.
Definition team.cpp:181
bool removePlayerID(PlayerID id)
Removes a player from the team (senior squad or academy).
Definition team.cpp:104
std::string recent_form
Definition team.h:184
const std::string & getRecentForm() const noexcept
Last results, newest first ("WDL..."), at most 5 letters.
Definition team.cpp:186
Lineup & getLineup()
Gets the team's lineup (non-const).
Definition team.cpp:112
void setStrategy(const Strategy &strategy)
Sets the team's strategy.
Definition team.cpp:118
TeamID getId() const
Gets the team's ID.
Definition team.cpp:72
ClubProfile profile
Definition team.h:183
void generateStartingXI(const class GameData &gamedata, const StatsConfig &stats_config)
Generates the best starting XI automatically based on stats.
Definition team.cpp:121
LeagueID getLeagueId() const
Gets the ID of the team's league.
Definition team.cpp:73
Finances finances
Definition team.h:182
Persistent club attributes that drive revenue and development.
Definition team.h:26
std::uint32_t stadium_capacity
Definition team.h:28
std::uint8_t training_facilities
Definition team.h:30
std::uint32_t ticket_price
Definition team.h:29
std::uint8_t youth_facilities
Definition team.h:31
std::uint8_t reputation
Definition team.h:27
Configuration mapping roles to their focus areas and listing all possible stats.
Definition stats_config.h:42
MatchOutcome
Result letters stored in the recent-form string.
Definition team.h:36
uint8_t LeagueID
Type alias for League identifiers.
Definition types.h:15
uint16_t TeamID
Type alias for Team identifiers.
Definition types.h:18
uint32_t PlayerID
Type alias for Player identifiers.
Definition types.h:21