Пример #1
0
        public static bool CurrentDiffersFrom(Location otherLocation, bool compareHeading)
        {
            if(otherLocation.X != REPlugin.Instance.Actions.LocationX)
            {
                return true;
            }

            if(otherLocation.Y != REPlugin.Instance.Actions.LocationY)
            {
                return true;
            }

            if(otherLocation.Z != REPlugin.Instance.Actions.LocationZ)
            {
                return true;
            }

            if (compareHeading)
            {
                if (otherLocation.HeadingInDegrees != REPlugin.Instance.Actions.Heading)
                {
                    return true;
                }
            }

            return false;
        }
Пример #2
0
 public static double GetDistance(Location loc1, Location loc2)
 {
     return GetDistance(loc1.Coords, loc2.Coords);
 }
Пример #3
0
 public static bool WithinRangeOfSelf(Location location, int maxDistance)
 {
     return WithinRangeOfSelf(location.Coords, maxDistance);
 }
Пример #4
0
 public static double GetDistanceFromSelf(Location point)
 {
     return GetDistanceFromSelf(point.Coords);
 }
Пример #5
0
 public JumpData(Location fromLocation, double heading, double height)
 {
     this.Location = fromLocation;
     this.Heading = heading;
     this.Height = height;
 }
 public static IAction Create(ISupportFeedback requestor, Location location)
 {
     return new GoToNearbyLocation(requestor, location.Coords, location.HeadingInDegrees);
 }
Пример #7
0
 public bool CurrentIsSameAs(Location otherLocation, bool compareHeading)
 {
     return !CurrentDiffersFrom(otherLocation, compareHeading);
 }