Constructor and Description |
---|
AIConsole()
create a new AIConsole and start listening to commands
|
Modifier and Type | Method and Description |
---|---|
void |
parseCommand(String line)
Parse a command given by the user.
|
void |
printCommandHelp()
prints the available commands
|
void |
printConfig()
prints the current configuration of the AI
|
static void |
printMessage(String message)
Deprecated.
This method displays String. Shorthand for System.out.println(s)
|
static void |
printMessage(String message,
MessageLevel messageLevel)
This method displays String.
|
void |
printStatus()
prints the current status
[connected]
[in queue]
|
void |
run() |
public AIConsole()
public void parseCommand(String line)
line
- the command the user givespublic static void printMessage(String message)
message
- the message that should be displayedpublic static void printMessage(String message, MessageLevel messageLevel)
MessageLevel
to the message itself.messageLevel
- [0] = "INFO" , [1] = "WARNING", [2] = "ERROR", [3] = "FATAL"message
- the message that should be displayedpublic void printConfig()
public void printStatus()
public void printCommandHelp()
Copyright © 2017 smarTen. All rights reserved.