Beispiel #1
0
        static private void FireAdventurer()
        {
            int AdventurerList_Count = AdventurerList.Count;

            if (AdventurerList_Count > 0)
            {
                for (int ii = 0; ii < AdventurerList_Count; ii++)
                {
                    foreach (var Adventurer in AdventurerList)
                    {
                        if (Adventurer.WorkTime >= overTime || Adventurer.IsEnd == true)
                        {
                            Adventurer.GoAWay();
                            AdventurerList.Remove(Adventurer);
                            break;
                        }
                    }
                }
            }
        }