public Drill(CrewPerson player, int crewSize) // constructor { this.Player = player; this.CrewPeople = CrewSelector(crewSize); this.Health = Math.Clamp(10, 0, 120); this.HealKits = crewSize - 1; this.RepairKits = crewSize / 2; this.Depth = 0; this.CrewSize = crewSize; }
public static Drill PlayerSetup() { Coloring.PaperworkColor(); Console.CursorVisible = true; Console.WriteLine("Hello Captain! It seems we mis-placed the paperwork. What is your first name?\n"); string firstName = NameValidation(); Console.WriteLine($"Ok, so your first name is {firstName}! Sorry I am new here what was your last name again?\n"); string lastName = NameValidation(); Console.WriteLine($"OHHHH!! You are {firstName} {lastName}! It is a pleasure to meet you.\n"); int crewSize = CrewSizeValidation(); Console.WriteLine($"Ahh yes! Now I found you! Captain {firstName} {lastName}, total crew of {crewSize}.\n\nGive me a second and I will grab your crew roster.\n"); Sounds.Printer(); Console.WriteLine($"It looks like eveyone is ready to go and already waiting for you in the drill.\n\n" + $"Some of your crew is a little quirky but just like you they went through a drill development apprenticeship,\nso you should be fine.\n\nI wish you luck on your journey!"); CrewPerson player = new CrewPerson(firstName, lastName); Drill drill = new Drill(player, crewSize); Thread.Sleep(8_000); return(drill); }