Package games.stendhal.client.entity
Class Corpse
java.lang.Object
games.stendhal.client.entity.Entity
games.stendhal.client.entity.Corpse
- All Implemented Interfaces:
IEntity,RPObjectChangeListener
A corpse entity.
-
Field Summary
Fields inherited from class games.stendhal.client.entity.Entity
clazz, inAdd, name, rpObject, title, type, x, yFields 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 TypeMethodDescriptionGet the corpse contents.gets the owner of the corpse who may loot.voidinitialize(RPObject object)Initialize this entity for an object.booleanisEmpty()Checks if the corpse is empty or notMethods 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, onChangedAdded, onChangedRemoved, onPosition, onRemoved, onSlotAdded, onSlotChangedAdded, onSlotChangedRemoved, onSlotRemoved, processPositioning, release, removeChangeListener, removeContentChangeListener, toString, update
-
Constructor Details
-
Corpse
public Corpse()
-
-
Method Details
-
getContent
Get the corpse contents.- Returns:
- The contents slot.
-
getCorpseOwner
gets the owner of the corpse who may loot.- Returns:
- owner or
null
-
initialize
Initialize this entity for an object.- Specified by:
initializein interfaceIEntity- Overrides:
initializein classEntity- Parameters:
object- The object.- See Also:
Entity.release()
-
isEmpty
public boolean isEmpty()Checks if the corpse is empty or not- Returns:
- true if the corpse is empty
-