Class Portal

All Implemented Interfaces:
IEntity, RPObjectChangeListener
Direct Known Subclasses:
Door

public class Portal extends InvisibleEntity
A portal which can be "used" by the player. Use a Door if you want some sprites for it.
  • Constructor Details

    • Portal

      public Portal()
  • Method Details

    • isHidden

      public boolean isHidden()
      Determine if the portal is hidden.
      Returns:
      true if hidden.
    • initialize

      public void initialize(RPObject object)
      Initialize this entity for an object.
      Specified by:
      initialize in interface IEntity
      Overrides:
      initialize in class Entity
      Parameters:
      object - The object.
      See Also:
      Entity.release()
    • onChangedAdded

      public void onChangedAdded(RPObject object, RPObject changes)
      The object added/changed attribute(s).
      Specified by:
      onChangedAdded in interface RPObjectChangeListener
      Overrides:
      onChangedAdded in class Entity
      Parameters:
      object - The base object.
      changes - The changes.
    • onChangedRemoved

      public void onChangedRemoved(RPObject object, RPObject changes)
      The object removed attribute(s).
      Specified by:
      onChangedRemoved in interface RPObjectChangeListener
      Overrides:
      onChangedRemoved in class Entity
      Parameters:
      object - The base object.
      changes - The changes.
    • isUseable

      public boolean isUseable()
      Is this entity useable?
      Returns:
      true if it is useable, false otherwise