Package org.lazywizard.console
Interface BaseCommand
-
- All Implemented Interfaces:
public interface BaseCommandThe basic interface all console commands must implement.
- Since:
2.0
LazyWizard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBaseCommand.CommandResultRepresents the success status of a command. Returned by runCommand.
public enumBaseCommand.CommandContextRepresents what screen the player was on when they used the command.
-
Method Summary
Modifier and Type Method Description abstract BaseCommand.CommandResultrunCommand(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
-
-
-
-