public override void GetWomanConclusion(Human human) { Console.WriteLine("Woman Sucess"); }
static void Main(string[] args) { IMammal1 mammal = new Human(); mammal.Move(5); }
public abstract void GetWomanConclusion(Human human);
public override void GetManConclusion(Human human) { Console.WriteLine("Man Faile"); }
public void Update() { if (Time.Current - LastCreate > RefreshHuman) { Human human = new Human(LevelCount); int StartLevel = human.StartLevel; Floors[StartLevel].AddHuman(human); human.Floor = Floors[StartLevel]; LastCreate = Time.Current; log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - "); log.WriteLine("Update humangenerator"); } }
internal void deleteHuman(Human human) { log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - "); //Console.WriteLine(Queue.Remove(human)); }
public void AddHuman(Human human) { Queue.Add(human); log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - "); log.Write("Человек добавлен в очередь на этаж "); log.WriteLine(human.StartLevel); }
internal void DeleteHuman(Human human) { Humans.Remove(human); log.WriteLine("Человек удален из лифта"); }
internal void AddHuman(Human human) { Humans.Add(human); log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - "); log.WriteLine("Человек зашел в лифт на "+ human.StartLevel+" этаже, ему надо на "+human.FinishLevel+" этаж."); }