public override void GetWomanConclusion(Human human)
 {
     Console.WriteLine("Woman Sucess");
 }
예제 #2
0
 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");
 }
예제 #5
0
 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");
     }
 }
예제 #6
0
 internal void deleteHuman(Human human)
 {
     log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - ");
     //Console.WriteLine(Queue.Remove(human));
 }
예제 #7
0
 public void AddHuman(Human human)
 {
     Queue.Add(human);
     log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - ");
     log.Write("Человек добавлен в очередь на этаж ");
     log.WriteLine(human.StartLevel);
 }
예제 #8
0
 internal void DeleteHuman(Human human)
 {
     Humans.Remove(human);
     log.WriteLine("Человек удален из лифта");
 }
예제 #9
0
            internal void AddHuman(Human human)
            {
                Humans.Add(human);

                log.Write(DateTime.Now.Minute + ":" + DateTime.Now.Second + " - ");
                log.WriteLine("Человек зашел в лифт на "+ human.StartLevel+" этаже, ему надо на "+human.FinishLevel+" этаж.");
            }