|
@ -6,7 +6,9 @@ import java.util.HashMap; |
|
|
import java.util.Scanner; |
|
|
import java.util.Scanner; |
|
|
|
|
|
|
|
|
public class CommandListener { |
|
|
public class CommandListener { |
|
|
|
|
|
|
|
|
|
|
|
// This class is the API between the command interface and the user input |
|
|
|
|
|
// This class is used to handle all the commands |
|
|
|
|
|
// The commands are stored in a hashmap |
|
|
private HashMap<String, CommandAPI> commands; |
|
|
private HashMap<String, CommandAPI> commands; |
|
|
|
|
|
|
|
|
public CommandListener() { |
|
|
public CommandListener() { |
|
|