Score LifeLost Method Delta Engine Documentation

Namespace: Breakout
Assembly: Breakout (in Breakout.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void LifeLost()
Remarks

Tests: Breakout.Tests.ScoreTests
Examples

1 unit tests call Breakout.Score.LifeLost
[Test]
public void LoseLivesUntilGameOver()
{
    bool isGameOver = false;
    score.GameOver += () => isGameOver = true;
    score.LifeLost();
    score.LifeLost();
    score.LifeLost();
    Assert.IsTrue(isGameOver);
}
See Also