|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.monsters.DefaultCustomAttack wyvern.lib.monsters.DrainAttack
Experience drain.
Field Summary |
Fields inherited from class wyvern.lib.monsters.DefaultCustomAttack |
DEFAULT_HIT_CHANCE |
Constructor Summary | |
DrainAttack()
|
Method Summary | |
int |
getLevel()
Returns the drain Level, for use in performDamage. |
void |
performDamage(Commandable attacker,
GameObject defender,
CommandEvent event)
Tells the attack to perform its special damage effect. |
void |
setLevel(int level)
Sets the drain Level, for use in performDamage. |
Methods inherited from class wyvern.lib.monsters.DefaultCustomAttack |
didDamage, getToHit, getWC, getWeaponSkill, recomputeWCs, setShowAttackerMessage, setToHit, setWC, showAttackerMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DrainAttack()
Method Detail |
public void performDamage(Commandable attacker, GameObject defender, CommandEvent event)
Runs a method-hook on the defender called "xp-drain". The data parameter is an Integer whose value is the amount that got drained. It's a positive number.
attacker
- the monster doing the drain attackdefender
- the player being attackedevent
- the HitCommand eventpublic int getLevel()
public void setLevel(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |