Renamed the shape command to regularpolygon to avoid confussion

This commit is contained in:
Lukasz Baldyga committed 2020-10-23 01:47:35 +01:00
1 parent 63794a39d7
commit 364cf63c17
1 file changed
+3 -2
@@ -14,6 +14,7 @@ namespace Advanced_Software_Engineering {
string[] parameters = commandAndParameters.Keys.Contains("parameters") ? commandAndParameters["parameters"] : new string[] { }; string[] parameters = commandAndParameters.Keys.Contains("parameters") ? commandAndParameters["parameters"] : new string[] { };
switch (command) { switch (command) {
case "move":
case "moveto": case "moveto":
//Check parameters //Check parameters
if (parameters.Length == 2) { if (parameters.Length == 2) {
@@ -43,7 +44,8 @@ namespace Advanced_Software_Engineering {
throw e; throw e;
} }
} else throw new Exception("Command has an incorrect number of parameters"); } else throw new Exception("Command has an incorrect number of parameters");
case "shape": case "regularpolygon":
case "rp":
//Check parameters //Check parameters
if (parameters.Length == 2) { if (parameters.Length == 2) {
return new return new
@@ -69,7 +71,6 @@ namespace Advanced_Software_Engineering {
case "clear": case "clear":
case "pen": case "pen":
case "fill": case "fill":
case "color":
throw new Exception("Not implemented"); throw new Exception("Not implemented");
default: default: