Server.PathFollower.Check C# (CSharp) Méthode

Check() public méthode

public Check ( Server.Point3D loc, Server.Point3D goal, int range ) : bool
loc Server.Point3D
goal Server.Point3D
range int
Résultat bool
		public bool Check( Point3D loc, Point3D goal, int range )
		{
			if ( !Utility.InRange( loc, goal, range ) )
				return false;

			if ( range <= 1 && Math.Abs( loc.Z - goal.Z ) >= 16 )
				return false;

			return true;
		}