Package games.stendhal.server.events
Class AttackEvent
java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.SlotOwner
marauroa.common.game.RPEvent
games.stendhal.server.events.AttackEvent
- All Implemented Interfaces:
Cloneable,Iterable<String>,Serializable
An RPEntity attacks another
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAttackEvent(boolean canHit, int damage, Nature type, String weapon, boolean ranged) Construct a newAttackEvent -
Method Summary
Methods inherited from class marauroa.common.game.RPEvent
clone, equals, fill, getName, hashCode, readObject, setOwner, toString, writeObject, writeObjectMethods inherited from class marauroa.common.game.SlotOwner
addSlot, addSlot, deserializeRPSlots, fill, getSlot, hasSlot, removeSlot, serializeRPSlots, slots, slotsIterator, writeToJsonMethods inherited from class marauroa.common.game.Attributes
add, applyDifferences, clearVisible, get, getBool, getDouble, getInt, getList, getLong, getRPClass, has, instanceOf, isEmpty, iterator, put, put, put, put, put, readFromMap, remove, resetAddedAndDeletedAttributes, setAddedAttributes, setDeletedAttributes, setRPClass, setRPClass, size, toAttributeStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AttackEvent
Construct a newAttackEvent- Parameters:
canHit-falsefor missed hits,truefor wounding or blocked hitsdamage- damage donetype- damage type of the attackweapon- the used weapon. Can benullranged-trueif the attack is ranged, otherwisefalse
-
-
Method Details
-
generateRPClass
public static void generateRPClass()Creates the rpclass.
-