Player12
An open source football management simulator
Loading...
Searching...
No Matches
match.h File Reference
#include <cstddef>
#include <cstdint>
#include <functional>
#include <optional>
#include <span>
#include <utility>
#include <vector>
#include "gamedate.h"
#include "global/stats_config.h"
#include "global/types.h"

Go to the source code of this file.

Classes

class  Match
 Represents a football match between two teams. More...
 

Namespaces

namespace  MatchdaySquad
 

Typedefs

using MatchdaySquad::Eligibility = std::function< bool(const Player &)>
 

Functions

std::vector< PlayerID > MatchdaySquad::ineligible (const Lineup &lineup, const Eligibility &eligible)
 
float MatchdaySquad::slotScore (const Player &player, PlayerRole slot, const StatsConfig &config)
 
std::size_t MatchdaySquad::replaceIneligible (Lineup &lineup, std::span< const Player *const > squad, const Eligibility &eligible, const StatsConfig &config)
 
std::size_t MatchdaySquad::recallRegulars (Lineup &lineup, std::span< const Player *const > squad, const Eligibility &eligible, const StatsConfig &config)
 
void MatchdaySquad::recordStandIns (const Lineup &before, Lineup &after)
 
std::vector< std::pair< PlayerID, PlayerID > > MatchdaySquad::replacements (const Lineup &before, const Lineup &after)
 
void MatchdaySquad::carryCondition (MatchEngine &engine, const Lineup &lineup)
 
std::vector< PlayerMatchConsequence > MatchdaySquad::consequences (const MatchEngine &engine)
 
std::vector< std::pair< PlayerID, std::uint8_t > > MatchdaySquad::medicalFlags (const MedicalDesk &medical, const Lineup &lineup)