15 lines
323 B
Java
15 lines
323 B
Java
package com.github.dtschust.zork;
|
|
|
|
/* Special Command condition */
|
|
public class ZorkCommand {
|
|
private final String commandName;
|
|
|
|
public ZorkCommand(String command) {
|
|
this.commandName = command;
|
|
}
|
|
|
|
public boolean matchesInput(String userInput) {
|
|
return commandName.equals(userInput);
|
|
}
|
|
}
|