public class CommandInterface
extends java.lang.Object
Constructor and Description |
---|
CommandInterface(Character player,
GameWorld gw)
Command interface constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
executeCommand(java.lang.String line)
Executes specified command
|
boolean |
executeScript(Script script)
Executes specified script
|
Character |
getPlayer()
Returns player character
|
void |
setUiMan(UserInterface uiToMan)
Sets GUI to manage by CLI
|
public java.lang.String[] executeCommand(java.lang.String line)
line
- String with commandpublic boolean executeScript(Script script)
script
- Script to executepublic void setUiMan(UserInterface uiToMan)
uiToMan
- GUIpublic Character getPlayer()