Class CommandRunner

Object
CommandRunner

public class CommandRunner extends Object
Will run the command provided.
Author:
maartenl
See Also:
  • Constructor Details

    • CommandRunner

      public CommandRunner()
  • Method Details

    • runCommand

      public DisplayInterface runCommand(User aUser, String aCommand, List<UserCommand> userCommands)
      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 command
      aCommand - 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

      public PersonService getPersonService()
    • getHelpService

      public HelpService getHelpService()
    • getLogService

      public LogService getLogService()
    • getGuildService

      public GuildService getGuildService()
    • getItemService

      public ItemService getItemService()
    • getChatService

      public ChatService 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)