Package games.stendhal.server.entity
Class Blood
- All Implemented Interfaces:
Killer,Cloneable,Iterable<String>,Serializable
Represents a blood puddle that is left on the ground after an entity was
injured or killed.
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.game.RPObject
RPObject.ID -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBlood will disappear after so many seconds.Fields inherited from class marauroa.common.game.RPObject
INVALID_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Get the entity description.static voidvoidonRemoved(StendhalRPZone zone) Called when this object is being removed from a zone.voidonTurnReached(int currentTurn) This method is called when the turn number is reached.Methods inherited from class games.stendhal.server.entity.Entity
getAdjacentNodes, getArea, getArea, getCursor, getDescription, getDescriptionName, getEntitySlot, getHeight, getName, getOrigin, getResistance, getResistance, getTitle, getWidth, getX, getY, getZone, hasDescription, isInSight, isObstacle, nextTo, nextTo, notifyWorldAboutChanges, onAdded, onMoved, setCursor, setDescription, setEntityClass, setEntitySubclass, setMenu, setPosition, setResistance, setSize, setVisibility, slotIterator, slots, squaredDistance, squaredDistance, stopped, updateMethods inherited from class marauroa.common.game.RPObject
addEvent, addLink, addLink, addMap, addSlot, addSlot, applyDifferences, clearEvents, clearVisible, clone, containsKey, equals, events, eventsIterator, fill, get, getBaseContainer, getBoolean, getContainer, getContainerBaseOwner, getContainerOwner, getContainerSlot, getDifferences, getDouble, getFromSlots, getID, getInt, getLink, getLinkedObject, getMap, getSlot, has, hashCode, hasLink, hasMap, hasSlot, hide, isContained, isEmpty, isHidden, isStorable, maps, put, put, put, put, readObject, remove, removeLink, removeMap, removeSlot, resetAddedAndDeleted, resetAddedAndDeletedMaps, resetAddedAndDeletedRPLink, resetAddedAndDeletedRPSlot, setAddedMaps, setAddedRPSlot, setContainer, setDeletedMaps, setDeletedRPSlot, setID, size, slots, slotsIterator, store, toString, unhide, unstore, writeObject, writeObject, writeToJsonMethods inherited from class marauroa.common.game.SlotOwner
deserializeRPSlots, fill, serializeRPSlotsMethods inherited from class marauroa.common.game.Attributes
add, applyDifferences, get, getBool, getDouble, getInt, getList, getLong, getRPClass, has, instanceOf, iterator, put, put, put, put, put, readFromMap, remove, resetAddedAndDeletedAttributes, setAddedAttributes, setDeletedAttributes, setRPClass, setRPClass, toAttributeStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEGRADATION_TIMEOUT
public static final int DEGRADATION_TIMEOUTBlood will disappear after so many seconds.- See Also:
-
-
Constructor Details
-
Blood
public Blood()Create a blood entity. -
Blood
Create a blood entity.- Parameters:
type- of blood
-
Blood
Create a blood entity.- Parameters:
clazz- The class of blood.amount- The amount of blood.
-
-
Method Details
-
generateRPClass
public static void generateRPClass() -
onRemoved
Description copied from class:EntityCalled when this object is being removed from a zone. -
describe
Get the entity description. -
onTurnReached
public void onTurnReached(int currentTurn) This method is called when the turn number is reached.- Parameters:
currentTurn- The current turn number.
-