Package games.stendhal.client.entity
Class Door
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.InvisibleEntity
games.stendhal.client.entity.Portal
games.stendhal.client.entity.Door
- All Implemented Interfaces:
IEntity
,RPObjectChangeListener
A door entity.
-
Field Summary
Modifier and TypeFieldDescriptionstatic games.stendhal.client.entity.Property
Open state property.Fields inherited from class games.stendhal.client.entity.Entity
clazz, inAdd, name, rpObject, title, type, x, y
Fields inherited from interface games.stendhal.client.entity.IEntity
PROP_ANIMATED, PROP_CLASS, PROP_NAME, PROP_POSITION, PROP_SIZE, PROP_STATE, PROP_TITLE, PROP_VISIBILITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize(RPObject object)
Initialize this entity for an object.boolean
isOpen()
Check if the door is open.void
onChangedAdded(RPObject object, RPObject changes)
The object added/changed attribute(s).void
onChangedRemoved(RPObject object, RPObject changes)
The object removed attribute(s).Methods inherited from class games.stendhal.client.entity.Entity
addChangeListener, addContentChangeListener, fireChange, getArea, getCursor, getEntityClass, getEntitySubclass, getHeight, getID, getName, getObjectID, getPath, getResistance, getResistance, getRPObject, getSlot, getTitle, getType, getVisibility, getWidth, getX, getY, isObstacle, isOnGround, isUser, onAdded, onPosition, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, processPositioning, release, removeChangeListener, removeContentChangeListener, toString, update
-
Field Details
-
PROP_OPEN
public static final games.stendhal.client.entity.Property PROP_OPENOpen state property.
-
-
Constructor Details
-
Door
public Door()Create a door entity.
-
-
Method Details
-
isOpen
public boolean isOpen()Check if the door is open.- Returns:
true
if the door is open.
-
initialize
Initialize this entity for an object.- Specified by:
initialize
in interfaceIEntity
- Overrides:
initialize
in classPortal
- Parameters:
object
- The object.- See Also:
Entity.release()
-
onChangedAdded
The object added/changed attribute(s).- Specified by:
onChangedAdded
in interfaceRPObjectChangeListener
- Overrides:
onChangedAdded
in classPortal
- Parameters:
object
- The base object.changes
- The changes.
-
onChangedRemoved
The object removed attribute(s).- Specified by:
onChangedRemoved
in interfaceRPObjectChangeListener
- Overrides:
onChangedRemoved
in classPortal
- Parameters:
object
- The base object.changes
- The changes.
-