Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchClock Namespace Reference

Broadcast minute labels shared by the live match and its report. More...

Functions

std::string minuteLabel (float matchMinutes, int period, bool addedTime)
 Label of a match clock reading (minutes since kick-off).
 
std::string clockLabel (float matchMinutes, int period, bool addedTime)
 Running clock with seconds: "67:23", "45+2:10" in added time (minutes beyond the regulation end of the half).
 
std::string minuteLabel (const MatchReportEvent &event)
 Label of a stored event (whole minutes elapsed, see its doc).
 

Detailed Description

Broadcast minute labels shared by the live match and its report.

The label names the minute being played: "1'" during the first minute, "45'" up to the half, then "45+N'" in first-half added time, "46'".."90'" and "90+N'"; in extra time "91'".."105+N'" and "106'".."120+N'". Live events and stored report events of the same moment get the same label.

Function Documentation

◆ clockLabel()

std::string MatchClock::clockLabel ( float  matchMinutes,
int  period,
bool  addedTime 
)

Running clock with seconds: "67:23", "45+2:10" in added time (minutes beyond the regulation end of the half).

◆ minuteLabel() [1/2]

std::string MatchClock::minuteLabel ( const MatchReportEvent &  event)

Label of a stored event (whole minutes elapsed, see its doc).

◆ minuteLabel() [2/2]

std::string MatchClock::minuteLabel ( float  matchMinutes,
int  period,
bool  addedTime 
)

Label of a match clock reading (minutes since kick-off).