wyvern.lib.monsters
Class NymphStealAttack

java.lang.Object
  extended bywyvern.lib.monsters.DefaultCustomAttack
      extended bywyvern.lib.monsters.StealAttack
          extended bywyvern.lib.monsters.NymphStealAttack
All Implemented Interfaces:
Attack, CustomAttack

public class NymphStealAttack
extends StealAttack

Implements nymph-stealing, which is a more or less normal steal-and-teleport attack, except that they prefer mirrors.

Version:
1.0, May 20, 2002
Author:
Steve Yegge

Field Summary
 
Fields inherited from class wyvern.lib.monsters.StealAttack
FAILED_DROPPED, FAILED_RESTORED, SUCCESS, TOO_HEAVY
 
Fields inherited from class wyvern.lib.monsters.DefaultCustomAttack
DEFAULT_HIT_CHANCE
 
Constructor Summary
NymphStealAttack()
           
 
Method Summary
 void performDamage(Commandable attacker, GameObject defender, CommandEvent event)
          Tells the attack to perform its special damage effect.
 
Methods inherited from class wyvern.lib.monsters.StealAttack
stealObject, teleport, transferObject
 
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

NymphStealAttack

public NymphStealAttack()
Method Detail

performDamage

public void performDamage(Commandable attacker,
                          GameObject defender,
                          CommandEvent event)
Tells the attack to perform its special damage effect. Called if the attack's to-hit was successful and the attack wasn't vetoed.

Parameters:
attacker - the nymph
defender - the player being attacked
event - the HitCommand event