Exemplo n.º 1
0
 //This method is to get the player's details
 public void GetDetails()
 {
     for (int i = 0; i < MAXN_SCORES; i++)
     {
         names[i] = UserLib.GetString("Player name > ");
         Console.Write("Enter score " + (i + 1) + " > ");
         scores[i] = Convert.ToInt32(Console.ReadLine());
     }
 }
        public void InputValues()
        {
            UserLib.WriteTitle("Game Score");

            player   = UserLib.GetString("Your name > ");
            aliens   = UserLib.GetInt("How many aliens have you killed > ");
            treasure = UserLib.GetInt("How much treasure have you found > ");
            hours    = UserLib.GetInt("How many hours did you play > ");
        }
Exemplo n.º 3
0
 /// <summary>
 /// *******************************************************
 /// This method will Start the Game
 /// *******************************************************
 /// </summary>
 private static void StartGame()
 {
     UserLib.WriteTitle(Title);
     Game.Start();
     playerName = UserLib.GetString("Please enter your name > ");
 }