This repository has been archived on 2022-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
sdm03/src/main/java/com/github/dtschust/zork/repl/Action.java

20 lines
404 B
Java
Raw Normal View History

package com.github.dtschust.zork.repl;
import com.github.dtschust.zork.ZorkGame;
import java.util.List;
public interface Action {
boolean matchesInput(final List<String> arguments);
2022-11-21 16:10:08 +00:00
default int getMinimumArgCount() {
return 1;
}
default int getMaximumArgCount() {
2022-11-21 16:10:08 +00:00
return Integer.MAX_VALUE;
}
2022-11-22 17:03:09 +00:00
boolean run(final ZorkGame game, final List<String> arguments);
}