Package games.stendhal.client.entity
Class Gate
java.lang.Object
games.stendhal.client.entity.Gate
- All Implemented Interfaces:
IEntity
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(EntityChangeListener<?> listener) Add a change listener.voidAdd a listener for content changesgetArea()Get the area the entity occupies.gets the cursor nameGet the entity class.Get the entity sub-class.doubleGet the entity height.getID()getName()Get the name.getPath()Get identifier path for the entity.intGet the resistance this has on other entities (0-100).intgetResistance(IEntity entity) Get the amount of resistance between this and another entity (0-100).Get the RPObject this represents.Gets the slot specified by name.getTitle()Get the nicely formatted entity title.getType()Get the entity type.intGet the entity visibility.doublegetWidth()Get the entity width.doublegetX()Get the X coordinate.doublegetY()Get the Y coordinate.voidinitialize(RPObject object) Initialize this entity for an object.booleanisObstacle(IEntity entity) Determine if this is an obstacle for another entity.booleanDetermine if this entity is on the ground.booleanisUser()Check if the entity is the user.voidrelease()Release this entity.voidremoveChangeListener(EntityChangeListener<?> listener) Remove a change listener.voidRemove a content change listener.voidsetAudibleRange(double range) voidupdate(int delta) Update cycle.
-
Constructor Details
-
Gate
public Gate()
-
-
Method Details
-
addChangeListener
Description copied from interface:IEntityAdd a change listener.- Specified by:
addChangeListenerin interfaceIEntity- Parameters:
listener- The listener.
-
getArea
Description copied from interface:IEntityGet the area the entity occupies. -
getAudibleArea
-
getEntityClass
Description copied from interface:IEntityGet the entity class.- Specified by:
getEntityClassin interfaceIEntity- Returns:
- The entity class.
-
getEntitySubclass
Description copied from interface:IEntityGet the entity sub-class.- Specified by:
getEntitySubclassin interfaceIEntity- Returns:
- The entity sub-class.
-
getHeight
public double getHeight()Description copied from interface:IEntityGet the entity height. -
getID
-
getName
Description copied from interface:IEntityGet the name. -
getRPObject
Description copied from interface:IEntityGet the RPObject this represents.- Specified by:
getRPObjectin interfaceIEntity- Returns:
- The RPObject.
-
getResistance
public int getResistance()Description copied from interface:IEntityGet the resistance this has on other entities (0-100).- Specified by:
getResistancein interfaceIEntity- Returns:
- The resistance.
-
getResistance
Description copied from interface:IEntityGet the amount of resistance between this and another entity (0-100).- Specified by:
getResistancein interfaceIEntity- Parameters:
entity- The entity to check against.- Returns:
- The effective resistance.
-
getSlot
Description copied from interface:IEntityGets the slot specified by name. -
getTitle
Description copied from interface:IEntityGet the nicely formatted entity title. This searches the follow attribute order: title, name (w/o underscore), type (w/o underscore). -
getType
Description copied from interface:IEntityGet the entity type. -
getVisibility
public int getVisibility()Description copied from interface:IEntityGet the entity visibility.- Specified by:
getVisibilityin interfaceIEntity- Returns:
- The entity visibility (0 - 100).
-
getWidth
public double getWidth()Description copied from interface:IEntityGet the entity width. -
getX
public double getX()Description copied from interface:IEntityGet the X coordinate. -
getY
public double getY()Description copied from interface:IEntityGet the Y coordinate. -
initialize
Description copied from interface:IEntityInitialize this entity for an object.- Specified by:
initializein interfaceIEntity- Parameters:
object- The object.- See Also:
-
isObstacle
Description copied from interface:IEntityDetermine if this is an obstacle for another entity.- Specified by:
isObstaclein interfaceIEntity- Parameters:
entity- The entity to check against.- Returns:
truethe entity can not enter this entity's area.
-
isOnGround
public boolean isOnGround()Description copied from interface:IEntityDetermine if this entity is on the ground.- Specified by:
isOnGroundin interfaceIEntity- Returns:
trueif the entity is on the ground.
-
isUser
public boolean isUser()Description copied from interface:IEntityCheck if the entity is the user. -
release
public void release()Description copied from interface:IEntityRelease this entity. This should clean anything that isn't automatically released (such as unregister callbacks, cancel external operations, etc). -
removeChangeListener
Description copied from interface:IEntityRemove a change listener.- Specified by:
removeChangeListenerin interfaceIEntity- Parameters:
listener- The listener.
-
setAudibleRange
public void setAudibleRange(double range) -
update
public void update(int delta) Description copied from interface:IEntityUpdate cycle. -
getCursor
Description copied from interface:IEntitygets the cursor name -
getPath
Get identifier path for the entity. -
addContentChangeListener
Description copied from interface:IEntityAdd a listener for content changes- Specified by:
addContentChangeListenerin interfaceIEntity
-
removeContentChangeListener
Description copied from interface:IEntityRemove a content change listener.- Specified by:
removeContentChangeListenerin interfaceIEntity
-