示例#1
0
 /// <summary>
 /// Adds a new Highscore to our data
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="wumpusKilled">If the wumpus was killed or not</param>
 public void AddHighscore(string name, bool wumpusKilled)
 {
     int[] values = gameLocations.GetPlayerInfo();
     highScore.NewHighscore(name, caveLayout.ToString(), gameLocations.GetScore(wumpusKilled), values[1], values[2]);
 }