示例#1
0
 private static void MovePeople()
 {
     foreach (Person person in PeopleInCity)
     {
         if (Prison.CheckIfInPrison(person))
         {
             continue;
         }
         person.Move();
     }
 }
示例#2
0
 private static void UpdatePeopleOnBoard()
 {
     CurrentBoard.Clear();
     foreach (Person person in PeopleInCity)
     {
         if (Prison.CheckIfInPrison(person))
         {
             continue;
         }
         var cell = CurrentBoard.GetCell(person.Y, person.X);
         cell.People.Add(person);
     }
 }