Esempio n. 1
0
        public override bool Equals(object obj)
        {
            PathFollowingBehavior pb = obj as PathFollowingBehavior;

            if (pb != null)
            {
                return(object.Equals(speedCommand, pb.speedCommand) && object.Equals(path, pb.path));
            }
            else
            {
                return(false);
            }
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="exitPath"></param>
 /// <param name="entryPath"></param>
 /// <param name="polygon"></param>
 public UTurnBehavior(PathFollowingBehavior exitPath, PathFollowingBehavior entryPath, Polygon polygon)
 {
     this.exitPath  = exitPath;
     this.entryPath = entryPath;
     this.polygon   = polygon;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="exitPath"></param>
 /// <param name="entryPath"></param>
 /// <param name="polygon"></param>
 public UTurnBehavior(PathFollowingBehavior exitPath, PathFollowingBehavior entryPath, Polygon polygon)
 {
     this.exitPath = exitPath;
     this.entryPath = entryPath;
     this.polygon = polygon;
 }