Game RestartGame Method Delta Engine Documentation

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

public void RestartGame()
Remarks

Tests: Asteroids.Tests.GameTests
Examples

1 unit tests call Asteroids.Game.RestartGame
[Test, CloseAfterFirstFrame]
public void RestartGameGivesRunningGameAgain()
{
    CreateAndStartGame();
    game.RestartGame();
    Assert.AreEqual(GameState.Playing, game.GameState);
}
See Also