Class SetCombatKarmaAction

java.lang.Object
games.stendhal.client.actions.SetCombatKarmaAction
All Implemented Interfaces:
SlashAction

public class SetCombatKarmaAction extends Object implements SlashAction
Sets entity's combat karma attribute to determine when karma is used on combat.
  • Constructor Details

    • SetCombatKarmaAction

      public SetCombatKarmaAction()
  • Method Details

    • execute

      public boolean execute(String[] params, String remainder)
      Description copied from interface: SlashAction
      Execute a chat command.
      Specified by:
      execute in interface SlashAction
      Parameters:
      params - The formal parameters.
      remainder - Line content after parameters.
      Returns:
      true if command was handled.
    • sendAction

      public boolean sendAction(String value)
      Notifies the server to update "combat.karma" attribute.
      Parameters:
      value - New value of attribute.
    • getMaximumParameters

      public int getMaximumParameters()
      Description copied from interface: SlashAction
      Get the maximum number of formal parameters.
      Specified by:
      getMaximumParameters in interface SlashAction
      Returns:
      The parameter count.
    • getMinimumParameters

      public int getMinimumParameters()
      Description copied from interface: SlashAction
      Get the minimum number of formal parameters.
      Specified by:
      getMinimumParameters in interface SlashAction
      Returns:
      The parameter count.