Class ViewChangeEntity

All Implemented Interfaces:
UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class ViewChangeEntity extends UseableEntity
An entity that when used, tells the client to change the view center. Used for the DM arena scrying devices. If this starts to be used elsewhere, it should be generalized to use conditions and actions.
  • Constructor Details

    • ViewChangeEntity

      public ViewChangeEntity(int x, int y)
      Create a new ViewChangeEntity.
      Parameters:
      x - x coordinate of the view center
      y - y coordinate of the view center
  • Method Details

    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Entity
      Returns:
      description from the players point of view
    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from interface: UseListener
      Invoked when the object is used.
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful