Esempio n. 1
0
 /// <summary>
 /// Restarts the game.
 /// </summary>
 internal void RestartGame()
 {
     Console.WriteLine("\n");
     this.GameState = GameState.New;
     LabyrinthFacade.instance = null;
 }
Esempio n. 2
0
 public LabyrinthGame()
 {
     this.fascade = LabyrinthFacade.GetInstance();
     this.fascade.GameState = GameState.New;
 }
Esempio n. 3
0
 /// <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;
 }