private static void MovePeople() { foreach (Person person in PeopleInCity) { if (Prison.CheckIfInPrison(person)) { continue; } person.Move(); } }
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); } }