Package org.lazywizard.console
Interface BaseCommand
-
- All Implemented Interfaces:
public interface BaseCommand
The basic interface all console commands must implement.
- Since:
2.0
LazyWizard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BaseCommand.CommandResult
Represents the success status of a command. Returned by runCommand.
public enum
BaseCommand.CommandContext
Represents what screen the player was on when they used the command.
-
Method Summary
Modifier and Type Method Description abstract BaseCommand.CommandResult
runCommand(String args, BaseCommand.CommandContext context)
Called when the player enters your command. -
-
Method Detail
-
runCommand
abstract BaseCommand.CommandResult runCommand(String args, BaseCommand.CommandContext context)
Called when the player enters your command.
- Parameters:
args
- The arguments passed into this command.context
- Where this command was called from (campaign, combat, mission, simulation, etc).- Returns:
A CommandResult describing the result of execution.
- Since:
2.0
-
-
-
-