20 lines
443 B
Java
20 lines
443 B
Java
package com.github.dtschust.zork.repl;
|
|
|
|
import com.github.dtschust.zork.parser.ZorkGame;
|
|
|
|
import java.util.List;
|
|
|
|
public abstract class Action {
|
|
public abstract boolean matchesInput(final List<String> arguments);
|
|
|
|
public int getMinimumArgCount() {
|
|
return 1;
|
|
}
|
|
|
|
public int getMaximumArgCount() {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
|
|
public abstract void run(final ZorkGame game, final List<String> arguments);
|
|
}
|