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, 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 TypeMethodDescriptionGet the corpse contents.gets the owner of the corpse who may loot.void
initialize(RPObject object)
Initialize this entity for an object.boolean
isEmpty()
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:
initialize
in interfaceIEntity
- Overrides:
initialize
in 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
-