Private
Public Access
implemented clear
This commit is contained in:
1 parent
54215a6e00
commit
48b8f2f1b6
2 files changed
+23
No files matched your search
+22
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Advanced_Software_Engineering {
|
||||||
|
public class Clear : Verb {
|
||||||
|
Drawer drawer;
|
||||||
|
|
||||||
|
public Clear(Drawer drawer) {
|
||||||
|
this.drawer = drawer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ExecuteVerb() => drawer.ClearCanvas();
|
||||||
|
|
||||||
|
public string GetDescription() {
|
||||||
|
return "Clears the canvas";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -129,6 +129,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
|
|
||||||
case "dot":
|
case "dot":
|
||||||
case "clear":
|
case "clear":
|
||||||
|
return new Clear(drawer);
|
||||||
case "pen":
|
case "pen":
|
||||||
case "fill":
|
case "fill":
|
||||||
throw new Exception("Not implemented");
|
throw new Exception("Not implemented");
|
||||||
|
|||||||
Reference in new issue
Block a user