public void Move(SpaceProbe spaceProbe) { foreach (var motionAgent in this._motionAgents) { motionAgent.Move(spaceProbe); } }
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 ); } }