private static void addingPerson(Room room, string wantAdd) { while (wantAdd == text.y) { Lady person = createPersonPart(); DisplayPersonInfo(person); room.AddGirlToRoom(person); Console.Write(text.addGirl); wantAdd = Console.ReadLine(); } }
private static void DisplayPersonInfo(Lady person) { Console.WriteLine(text.finaly); Console.WriteLine(text.mineInfo, person.Status, person.Name); if (person.getAge() > 0) { Console.WriteLine(text.yourAge, person.getAge()); } if (person.Status == text.friend) { Console.WriteLine(text.yourHobbie, person.getHobbie()); } else if (person.Status == text.mistress) { Console.WriteLine(text.yourServices, person.getServices()); } }
public void AddGirlToRoom(Lady lady) { aGirls.Add(lady); }