示例#1
0
文件: Level.cs 项目: pwyrwas/Windy
        public List <Person> PersonLeaveAWithoutCleaner(Elevator elevator)
        {
            int           i     = 0;
            List <Person> temp2 = new List <Person>();

            foreach (var person in WaitingPeople)
            {
                if (person.Rank != 3)
                {
                    elevator.PersonEnter(person);
                    temp2.Add(person);
                    i++;
                }
            }
            foreach (var person in temp2)
            {
                WaitingPeople.Remove(person);
            }
            var people = temp2.ToList();

            return(people);
        }
示例#2
0
文件: Building.cs 项目: pwyrwas/Windy
 public void ElevatorMove(Level level, Elevator elevator)
 {
     elevator.CurrentLevel = level;
 }