public void Move(SpaceProbe spaceProbe)
 {
     foreach (var motionAgent in this._motionAgents)
     {
         motionAgent.Move(spaceProbe);
     }
 }
示例#2
0
 public void Move(SpaceProbe spaceProbe)
 {
     if (spaceProbe.Direction.IsPossibleMove(spaceProbe, this.spaceProbePositioner))
     {
         spaceProbe.Moving();
     }
     else
     {
         throw new SpaceProbePositionOutOfPlateauException(
                   spaceProbe.PositionX,
                   spaceProbe.PositionY,
                   this.spaceProbePositioner.LimitX,
                   this.spaceProbePositioner.LimitY
                   );
     }
 }