/// <summary> /// Restarts the game. /// </summary> internal void RestartGame() { Console.WriteLine("\n"); this.GameState = GameState.New; LabyrinthFacade.instance = null; }
public LabyrinthGame() { this.fascade = LabyrinthFacade.GetInstance(); this.fascade.GameState = GameState.New; }
/// <summary> /// Gets an instance of the Labyrinth. /// </summary> /// <returns>An instance of class Labyrinth.</returns> internal static LabyrinthFacade GetInstance() { if (instance == null) { instance = new LabyrinthFacade(); } return instance; }