コード例 #1
0
ファイル: Staff.cs プロジェクト: Semanm/Project_TBQuestGame
        /// <summary>
        /// override method for the staff'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;
        }
コード例 #2
0
 /// <summary>
 /// constructor to create the console view, send all major data objects
 /// </summary>
 /// <param name="myPlayer">active player object</param>
 /// <param name="hall">current hall object</param>
 /// <param name="hall">current guest list object</param>
 public ConsoleView(Player myPlayer, Hall hall, GuestList guests, StaffList staff)
 {
     _myPlayer = myPlayer;
     _hall = hall;
     _guestList = guests;
     _staffList = staff;
     InitializeConsoleWindow();
 }
コード例 #3
0
 /// <summary>
 /// initialize the player with their properties
 /// </summary>
 private void InitializePlayer()
 {
     _myPlayer = new Player(
         "Bonzo",
         Player.GenderType.Female,
         Player.RaceType.Human,
         1);
 }