Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_clock.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 <string>
12
13struct MatchReportEvent;
14
23namespace MatchClock
24{
26std::string minuteLabel(float matchMinutes, int period, bool addedTime);
27
32std::string clockLabel(float matchMinutes, int period, bool addedTime);
33
35std::string minuteLabel(const MatchReportEvent& event);
36} // namespace MatchClock
Broadcast minute labels shared by the live match and its report.
Definition match_clock.h:24
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 th...
Definition match_clock.cpp:49
std::string minuteLabel(float matchMinutes, int period, bool addedTime)
Label of a match clock reading (minutes since kick-off).
Definition match_clock.cpp:29
One structured event of a finished match (scorer, card...).
Definition match_report.h:40