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
ConstructorDescriptionAttackEvent(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, writeObject
Methods inherited from class marauroa.common.game.SlotOwner
addSlot, addSlot, deserializeRPSlots, fill, getSlot, hasSlot, removeSlot, serializeRPSlots, slots, slotsIterator, writeToJson
Methods 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, toAttributeString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AttackEvent
Construct a newAttackEvent
- Parameters:
canHit
-false
for missed hits,true
for wounding or blocked hitsdamage
- damage donetype
- damage type of the attackweapon
- the used weapon. Can benull
ranged
-true
if the attack is ranged, otherwisefalse
-
-
Method Details
-
generateRPClass
public static void generateRPClass()Creates the rpclass.
-