Package games.stendhal.client.entity
Class StatefulEntity
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.StatefulEntity
- All Implemented Interfaces:
IEntity
,RPObjectChangeListener
- Direct Known Subclasses:
Block
A map entity with a use menu.
- Author:
- hendrik
-
Field Summary
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 TypeMethodDescriptionint
getState()
gets the internal state used to pick the correct row in the sprite image.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, initialize, isObstacle, isOnGround, isUser, onAdded, onChangedAdded, onChangedRemoved, onPosition, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, processPositioning, release, removeChangeListener, removeContentChangeListener, toString, update
-
Constructor Details
-
StatefulEntity
public StatefulEntity()
-
-
Method Details
-
getState
public int getState()gets the internal state used to pick the correct row in the sprite image.- Returns:
- row index in the sprite image
-