private List <ZPoint> _interdit;//list contenant les bord de la zone public ZoneDeplacement(Texture2D texture, ZEcart ecart, ZTaille taille, ZPoint depart, Map map, int posStart, int rayon) : base(ecart, taille, depart) { _texture = texture; _map = map; _rayon = rayon; _posStart = posStart; _depart = depart; _interdit = new List <ZPoint>(); GetGroupe(depart); }
public PathFinding(Trajet trajet, ZoneDeplacement zone) { _mapPosStart = zone._posStart; _tMax = new ZTaille(zone.GetTaille()); _ecart = zone.GetEcart(); _trajet = trajet; InitializeMap(zone); PathFinder pathFinder = new PathFinder(_searchParameters, 4); List <System.Drawing.Point> path = pathFinder.FindPath(); ApplyPath(path); //ShowRoute("The algorithm should find a direct path without obstacles:", path); }