예제 #1
0
        /// <summary>
        /// override method for the guest's greeting
        /// </summary>
        /// <returns>greeting string</returns>
        public string Greeting(Player player)
        {
            string greeting;
            greeting = string.Format("Hello, my name is {1}. {3}", _name, _initialGreeting);

            return greeting;
        }
 /// <summary>
 /// initialize the player wtth their properities
 /// </summary>
 private void InitializePlayer()
 {
     _myPlayer = new Player(
         "Bonzo",
         Player.GenderType.Female,
         Player.RaceType.Human,
         1);
 }
예제 #3
0
 /// <summary>
 /// constructor to create the console view, send all major data objects
 /// </summary>
 /// <param name="myPlayer">active player object</param>
 public ConsoleView(Player myPlayer)
 {
     _myPlayer = myPlayer;
     InitializeConsoleWindow();
 }