public interface BaseCommand
Modifier and Type | Interface and Description |
---|---|
static class |
BaseCommand.CommandContext
Represents what screen the player was on when they used the command.
|
static class |
BaseCommand.CommandResult
Represents the success status of a command.
|
Modifier and Type | Method and Description |
---|---|
BaseCommand.CommandResult |
runCommand(java.lang.String args,
BaseCommand.CommandContext context)
Called when the player enters your command.
|
BaseCommand.CommandResult runCommand(java.lang.String args, BaseCommand.CommandContext context)
args
- The arguments passed into this command. Will be an empty
string if no arguments were entered.context
- Where this command was called from (campaign, combat,
mission, simulation, etc).
BaseCommand.CommandResult
describing the result of execution.