Updated Interface

This commit is contained in:
Lukasz Baldyga committed 2020-11-25 05:01:57 +00:00
1 parent 35bc68cfb6
commit 15c9eb98c9
6 files changed
+53 -12

No files matched your search

@@ -203,9 +203,12 @@ namespace Advanced_Software_Engineering {
} else throw new Exception(command + " has an incorrect number of parameters");
case "int":
case "double":
case "bool":
case "color":
if (parameterLength == 1) {
return new Verb
} else throw new Exception("ints need to be initialised");
return new InitialiseVariable(drawer, command, parameters[0]);
} else throw new Exception(command + "s need to be initialised");
default:
throw new Exception("Unknown command");