Level 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.LevelTests
Examples

1 unit tests call Breakout.Level.LifeLost
[Test, CloseAfterFirstFrame]
public void LifeLostLeadsToGameOver()
{
    bool lost = false;
    var score = new Score();
    score.GameOver += () => lost = true;
    var level = new Level(score);
    level.LifeLost();
    level.LifeLost();
    level.LifeLost();
    Assert.True(lost);
}
See Also