示例#1
0
 public TargetInfo(IFormationStation fst) {
     Target = fst as IDestinationTarget;
     //Destination = Target.Position;
     _fstOffset = Vector3.zero;
     CloseEnoughDistance = Constants.ZeroF;
     CloseEnoughDistanceSqrd = CloseEnoughDistance * CloseEnoughDistance;
 }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <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();
 }
示例#4
0
 public TargetInfo(IFormationStation fst) {
     Target = fst as INavigableTarget;
     Destination = Target.Position;
     CloseEnoughDistance = Constants.ZeroF;
     CloseEnoughDistanceSqrd = CloseEnoughDistance * CloseEnoughDistance;
 }
示例#5
0
 public ShipDestinationInfo(IFormationStation fst) {
     Target = fst as INavigableTarget;
     _fstOffset = Vector3.zero;
     _closeEnoughDistance = fst.StationRadius;
     _progressCheckDistance = fst.StationRadius;
 }