This commit is contained in:
jslightham
2019-04-26 15:35:03 -04:00
parent 14bd1aa83f
commit 3358439e02
10 changed files with 140 additions and 21 deletions

View File

@@ -52,6 +52,14 @@ class CommandWords {
return m_words.get(aString).equals("direction");
}
public static boolean isItem(String aString){
try {
return m_words.get(aString).equals("item");
} catch(Exception e) {
return false;
}
}
/*
* Print all valid commands to System.out.
*/
@@ -63,4 +71,4 @@ class CommandWords {
}
System.out.println();
}
}
}