Class CommandRunner
Object
CommandRunner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunCommand
(User aUser, String aCommand, List<UserCommand> userCommands) Runs a specific command.void
setServices
(PersonService personService, LogService logService, GuildService guildService, ItemService itemService, EventsService eventsService, AdminService adminService, HelpService helpService, ChatService chatService)
-
Constructor Details
-
CommandRunner
public CommandRunner()
-
-
Method Details
-
runCommand
Runs a specific command. If this person appears to be asleep, the only possible commands are "quit" and "awaken". If the command found returns a false, i.e. nothing is executed, the method will call the standard BogusCommand.- Parameters:
aUser
- the person executing the commandaCommand
- the command to be run. Must not be null.userCommands
- the commands as defined by the user, instead of the standard commands. Must never be null.- Returns:
- DisplayInterface object containing the result of the command executed.
-
getPersonService
-
getHelpService
-
getLogService
-
getGuildService
-
getItemService
-
getChatService
- Returns:
- an injected chatline service, for dealing with chatlines.
-
setServices
public void setServices(PersonService personService, LogService logService, GuildService guildService, ItemService itemService, EventsService eventsService, AdminService adminService, HelpService helpService, ChatService chatService)
-