mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Move full time messages to game loop
This commit is contained in:
@@ -17,15 +17,8 @@ internal class Clock
|
||||
public void Increment(Scoreboard scoreboard)
|
||||
{
|
||||
time += 1;
|
||||
if (IsHalfTime)
|
||||
{
|
||||
scoreboard.Display(Resource.Formats.EndOfFirstHalf);
|
||||
// Loop back to center jump;
|
||||
}
|
||||
if (TwoMinutesLeft)
|
||||
{
|
||||
_io.Write(Resource.Streams.TwoMinutesLeft);
|
||||
}
|
||||
if (IsHalfTime) { scoreboard.Display(Resource.Formats.EndOfFirstHalf); }
|
||||
if (TwoMinutesLeft) { _io.Write(Resource.Streams.TwoMinutesLeft); }
|
||||
}
|
||||
|
||||
public void StartOvertime() => time = 93;
|
||||
|
||||
Reference in New Issue
Block a user