Exemple #1
0
        public static async Task <bool> MoveTo(
            HuntingGroundsType huntingGrounds,
            MovementByType movementBy = MovementByType.FlightorPreferred)
        {
            Contract.Requires(huntingGrounds != null, context => "huntingGrounds may not be null");
            var destination     = huntingGrounds.CurrentWaypoint().Location;
            var destinationName = String.Format("hunting ground waypoint '{0}'", huntingGrounds.CurrentWaypoint().Name);

            return(await MoveTo(destination, destinationName, movementBy));
        }
            protected bool MoveToNextGoal(HuntingGroundsType ridingPath)
            {
                if (!IsMountedOnRam())
                {
                    return(false);
                }

                var activeMover     = WoWMovement.ActiveMover;
                var currentWaypoint = ridingPath.CurrentWaypoint();

                var moveResult = Navigator.MoveTo(currentWaypoint.Location);

                if (Navigator.GetRunStatusFromMoveResult(moveResult) == RunStatus.Success)
                {
                    return(true);
                }

                QBCLog.DeveloperInfo(
                    "Navigator unable to move from {0} to destination({1}, {2}) on ground.",
                    activeMover.Location,
                    currentWaypoint.Name,
                    currentWaypoint.Location.ToString());
                return(false);
            }