AutoSharp.Utils.Positioning.AllyZone C# (CSharp) Method

AllyZone() static private method

Returns a list of points in the Ally Zone
static private AllyZone ( ) : System.Collections.Generic.List>
return System.Collections.Generic.List>
        internal static Paths AllyZone()
        {
            var teamPolygons = new List<Geometry.Polygon>();
            foreach (var hero in Heroes.AllyHeroes.Where(h => !h.IsMe && !h.IsDead && h.HealthPercent > 10 && !(h.InFountain() || h.InShop())))
            {
                teamPolygons.Add(GetChampionRangeCircle(hero).ToPolygon());
            }
            var teamPaths = Geometry.ClipPolygons(teamPolygons);
            var newTeamPaths = teamPaths;
            foreach (var pathList in teamPaths)
            {
                Path wall = new Path();
                foreach (var path in pathList)
                {
                    if (Utility.IsWall(new Vector2(path.X, path.Y)))
                    {
                        wall.Add(path);
                    }
                }
                newTeamPaths.Remove(wall);
            }
            return newTeamPaths;
        }