Beispiel #1
0
    void FindAndAssignNextNeutralZone(PrioritizedTargets targets, Pod pod, Map map)
    {
        var pathFound = GetPathToClosestNeutralZone(pod.Position, map);

        if (pathFound != null)
        {
            pod.AssignTarget(pathFound);
            targets.Remove(pod.Target.Dest);
        }
        else
        {
            Debug.Print("[Error] GetPathToClosestNeutralZone returned null for " + pod.Position.Id);
        }
    }