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

Go to the source code of this file.

Namespaces

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

Functions

std::string MatchClock::minuteLabel (float matchMinutes, int period, bool addedTime)
 Label of a match clock reading (minutes since kick-off).
 
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).
 
std::string MatchClock::minuteLabel (const MatchReportEvent &event)
 Label of a stored event (whole minutes elapsed, see its doc).