public TargetInfo(IFormationStation fst) { Target = fst as IDestinationTarget; //Destination = Target.Position; _fstOffset = Vector3.zero; CloseEnoughDistance = Constants.ZeroF; CloseEnoughDistanceSqrd = CloseEnoughDistance * CloseEnoughDistance; }
/// <summary> /// Plots a course to the ship's FormationStation and notifies the requester of the /// outcome via the onCoursePlotSuccess or Failure events. /// </summary> /// <param name="station">The formation station.</param> /// <param name="speed">The speed.</param> private void PlotCourse(IFormationStation station, Speed speed) { _targetInfo = new TargetInfo(station); Speed = speed; _isFleetMove = false; InitializeTargetValues(); //PlotCourse(); }
/// <summary> /// Plots a course to the ship's FormationStation and notifies the requester of the /// outcome via the onCoursePlotCompleted event. /// </summary> /// <param name="station">The formation station.</param> /// <param name="speed">The speed.</param> private void PlotCourse(IFormationStation station, Speed speed) { _targetInfo = new TargetInfo(station); Speed = speed; _isFleetMove = false; PlotCourse(); }
public TargetInfo(IFormationStation fst) { Target = fst as INavigableTarget; Destination = Target.Position; CloseEnoughDistance = Constants.ZeroF; CloseEnoughDistanceSqrd = CloseEnoughDistance * CloseEnoughDistance; }
public ShipDestinationInfo(IFormationStation fst) { Target = fst as INavigableTarget; _fstOffset = Vector3.zero; _closeEnoughDistance = fst.StationRadius; _progressCheckDistance = fst.StationRadius; }