diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/DrawTo.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/DrawTo.cs
index 7936b42..ac6e50a 100644
--- a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/DrawTo.cs
+++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/DrawTo.cs
@@ -1,4 +1,5 @@
using Advanced_Software_Engineering.Verbs.Value;
+using Advanced_Software_Engineering.Verbs.Value.ValueObjects;
using System.Drawing;
namespace Advanced_Software_Engineering.Verbs.DrawingVerbs {
@@ -8,26 +9,23 @@ namespace Advanced_Software_Engineering.Verbs.DrawingVerbs {
///
public class DrawTo : IVerb {
private readonly Drawer drawer;
- private readonly IValue moveToPointX;
- private readonly IValue moveToPointY;
+ private readonly PointValue moveToPoint;
///
/// Creates the DrawTo intstance
///
/// drawer
- /// X position to move to
- /// Y position to move to
- public DrawTo(Drawer drawer, IValue x, IValue y) {
+ /// Position to move to
+ public DrawTo(Drawer drawer, PointValue point) {
this.drawer = drawer;
- moveToPointX = x;
- moveToPointY = y;
+ moveToPoint = point;
}
///
/// Draws the line
///
public void ExecuteVerb() {
- drawer.DrawLine(new Point(moveToPointX.ToInt(), moveToPointY.ToInt()));
+ drawer.DrawLine(moveToPoint.GetPoint());
}
///