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
Modifier and TypeFieldDescriptionstatic int
Blood will disappear after so many seconds.Fields inherited from class marauroa.common.game.RPObject
INVALID_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondescribe()
Get the entity description.static void
void
onRemoved(StendhalRPZone zone)
Called when this object is being removed from a zone.void
onTurnReached(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, update
Methods 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, writeToJson
Methods inherited from class marauroa.common.game.SlotOwner
deserializeRPSlots, fill, serializeRPSlots
Methods 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, toAttributeString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
- Constant Field Values
-
-
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:Entity
Called 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.
-