Added several commands
This commit is contained in:
@@ -64,6 +64,12 @@ int CommandParser::Parse() {
|
||||
nouns = Noun(c);
|
||||
|
||||
for (const auto &verb: verbs) {
|
||||
|
||||
if (!commands[verb]) {
|
||||
printf("Sorry kid, can't understand ya! \n");
|
||||
break;
|
||||
}
|
||||
|
||||
commands[verb]("");
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user