From 243c955b2aa0e8ff51bf72ba43c14cc71e730157 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Tue, 3 Nov 2020 13:02:48 +0000 Subject: [PATCH] Documented ResetPen --- .../Verbs/DrawingVerbs/ResetPen.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/ResetPen.cs b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/ResetPen.cs index dfbc405..146f2b7 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/ResetPen.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Verbs/DrawingVerbs/ResetPen.cs @@ -5,17 +5,31 @@ using System.Text; using System.Threading.Tasks; namespace Advanced_Software_Engineering.Verbs.DrawingVerbs { + /// + /// Setsets the pen to the initial position. + /// public class ResetPen : Verb { Drawer drawer; + /// + /// Creates the ResetPen verb + /// + /// drawer public ResetPen(Drawer drawer) { this.drawer = drawer; } + /// + /// Moves the pen to 0, 0 + /// public void ExecuteVerb() => drawer.MovePen(new System.Drawing.Point(0, 0)); + /// + /// Gets the description of the command. + /// + /// The description of the command public string GetDescription() { - return "Moves pen to the start"; + return "Moves pen to the start (0, 0)"; } }