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[] { };
switch (command) {
case "move":
case "moveto":
//Check parameters
if (parameters.Length == 2) {
@@ -43,7 +44,8 @@ namespace Advanced_Software_Engineering {
throw e;
}
} else throw new Exception("Command has an incorrect number of parameters");
case "shape":
case "regularpolygon":
case "rp":
//Check parameters
if (parameters.Length == 2) {
return new
@@ -69,7 +71,6 @@ namespace Advanced_Software_Engineering {
case "clear":
case "pen":
case "fill":
case "color":
throw new Exception("Not implemented");
default: