Class Gate

java.lang.Object
games.stendhal.client.entity.Gate
All Implemented Interfaces:
IEntity

public class Gate extends Object implements IEntity
  • Constructor Details

    • Gate

      public Gate()
  • Method Details

    • addChangeListener

      public void addChangeListener(EntityChangeListener<?> listener)
      Description copied from interface: IEntity
      Add a change listener.
      Specified by:
      addChangeListener in interface IEntity
      Parameters:
      listener - The listener.
    • getArea

      public Rectangle2D getArea()
      Description copied from interface: IEntity
      Get the area the entity occupies.
      Specified by:
      getArea in interface IEntity
      Returns:
      A rectange (in world coordinate units).
    • getAudibleArea

      public Rectangle2D getAudibleArea()
    • getEntityClass

      public String getEntityClass()
      Description copied from interface: IEntity
      Get the entity class.
      Specified by:
      getEntityClass in interface IEntity
      Returns:
      The entity class.
    • getEntitySubclass

      public String getEntitySubclass()
      Description copied from interface: IEntity
      Get the entity sub-class.
      Specified by:
      getEntitySubclass in interface IEntity
      Returns:
      The entity sub-class.
    • getHeight

      public double getHeight()
      Description copied from interface: IEntity
      Get the entity height.
      Specified by:
      getHeight in interface IEntity
      Returns:
      The height.
    • getID

      public RPObject.ID getID()
      Specified by:
      getID in interface IEntity
      Returns:
      the represented arianne object id.
    • getName

      public String getName()
      Description copied from interface: IEntity
      Get the name.
      Specified by:
      getName in interface IEntity
      Returns:
      The name.
    • getRPObject

      public RPObject getRPObject()
      Description copied from interface: IEntity
      Get the RPObject this represents.
      Specified by:
      getRPObject in interface IEntity
      Returns:
      The RPObject.
    • getResistance

      public int getResistance()
      Description copied from interface: IEntity
      Get the resistance this has on other entities (0-100).
      Specified by:
      getResistance in interface IEntity
      Returns:
      The resistance.
    • getResistance

      public int getResistance(IEntity entity)
      Description copied from interface: IEntity
      Get the amount of resistance between this and another entity (0-100).
      Specified by:
      getResistance in interface IEntity
      Parameters:
      entity - The entity to check against.
      Returns:
      The effective resistance.
    • getSlot

      public RPSlot getSlot(String name)
      Description copied from interface: IEntity
      Gets the slot specified by name.
      Specified by:
      getSlot in interface IEntity
      Parameters:
      name - of the slot
      Returns:
      the specified slot or null if the entity does not have this slot
    • getTitle

      public String getTitle()
      Description copied from interface: IEntity
      Get the nicely formatted entity title. This searches the follow attribute order: title, name (w/o underscore), type (w/o underscore).
      Specified by:
      getTitle in interface IEntity
      Returns:
      The title, or null if unknown.
    • getType

      public String getType()
      Description copied from interface: IEntity
      Get the entity type.
      Specified by:
      getType in interface IEntity
      Returns:
      The type.
    • getVisibility

      public int getVisibility()
      Description copied from interface: IEntity
      Get the entity visibility.
      Specified by:
      getVisibility in interface IEntity
      Returns:
      The entity visibility (0 - 100).
    • getWidth

      public double getWidth()
      Description copied from interface: IEntity
      Get the entity width.
      Specified by:
      getWidth in interface IEntity
      Returns:
      The width.
    • getX

      public double getX()
      Description copied from interface: IEntity
      Get the X coordinate.
      Specified by:
      getX in interface IEntity
      Returns:
      The X coordinate.
    • getY

      public double getY()
      Description copied from interface: IEntity
      Get the Y coordinate.
      Specified by:
      getY in interface IEntity
      Returns:
      The Y coordinate.
    • initialize

      public void initialize(RPObject object)
      Description copied from interface: IEntity
      Initialize this entity for an object.
      Specified by:
      initialize in interface IEntity
      Parameters:
      object - The object.
      See Also:
      IEntity.release()
    • isObstacle

      public boolean isObstacle(IEntity entity)
      Description copied from interface: IEntity
      Determine if this is an obstacle for another entity.
      Specified by:
      isObstacle in interface IEntity
      Parameters:
      entity - The entity to check against.
      Returns:
      true the entity can not enter this entity's area.
    • isOnGround

      public boolean isOnGround()
      Description copied from interface: IEntity
      Determine if this entity is on the ground.
      Specified by:
      isOnGround in interface IEntity
      Returns:
      true if the entity is on the ground.
    • isUser

      public boolean isUser()
      Description copied from interface: IEntity
      Check if the entity is the user.
      Specified by:
      isUser in interface IEntity
      Returns:
      true if the entity is the user
    • release

      public void release()
      Description copied from interface: IEntity
      Release this entity. This should clean anything that isn't automatically released (such as unregister callbacks, cancel external operations, etc).
      Specified by:
      release in interface IEntity
      See Also:
      IEntity.initialize(RPObject)
    • removeChangeListener

      public void removeChangeListener(EntityChangeListener<?> listener)
      Description copied from interface: IEntity
      Remove a change listener.
      Specified by:
      removeChangeListener in interface IEntity
      Parameters:
      listener - The listener.
    • setAudibleRange

      public void setAudibleRange(double range)
    • update

      public void update(int delta)
      Description copied from interface: IEntity
      Update cycle.
      Specified by:
      update in interface IEntity
      Parameters:
      delta - The time (in ms) since last call.
    • getCursor

      public String getCursor()
      Description copied from interface: IEntity
      gets the cursor name
      Specified by:
      getCursor in interface IEntity
      Returns:
      name of cursor
    • getPath

      public List<String> getPath()
      Get identifier path for the entity.
      Specified by:
      getPath in interface IEntity
      Returns:
      List of object identifiers and slot names that make up the complete path to the entity
    • addContentChangeListener

      public void addContentChangeListener(ContentChangeListener listener)
      Description copied from interface: IEntity
      Add a listener for content changes
      Specified by:
      addContentChangeListener in interface IEntity
    • removeContentChangeListener

      public void removeContentChangeListener(ContentChangeListener listener)
      Description copied from interface: IEntity
      Remove a content change listener.
      Specified by:
      removeContentChangeListener in interface IEntity