/// <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; }
/// <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(); }
/// <summary> /// initialize the player with their properties /// </summary> private void InitializePlayer() { _myPlayer = new Player( "Bonzo", Player.GenderType.Female, Player.RaceType.Human, 1); }