Class OwnAction

java.lang.Object
games.stendhal.server.actions.pet.OwnAction
All Implemented Interfaces:
ActionListener

public class OwnAction extends Object implements ActionListener
Owns an domestic animal like a sheep.
  • Constructor Details

    • OwnAction

      public OwnAction()
  • Method Details

    • register

      public static void register()
      registers the action in the command center.
    • onAction

      public void onAction(Player player, RPAction action)
      processes the requested action.
      Specified by:
      onAction in interface ActionListener
      Parameters:
      player - the caller of the action
      action - the action to be performed