private void performActorBehaviours() // to be moved to ai section { for (int i = 0; i < sectorsWithinRange.Count; ++i) { for (int j = 0; j < sectorsWithinRange[i].Contained_Objects.actors.all.count(); ++j) { GActor actor = sectorsWithinRange[i].Contained_Objects.actors.all.getObjectAt(j); if (!actor.idle) { actor.performBehaviour(); } } } }