wyvern.lib.monsters
Class ExplodeAndBlind

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

public class ExplodeAndBlind
extends DefaultCustomAttack

An attack for yellow lights - they explode and blind everyone.

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

Field Summary
 
Fields inherited from class wyvern.lib.monsters.DefaultCustomAttack
DEFAULT_HIT_CHANCE
 
Constructor Summary
ExplodeAndBlind()
           
 
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.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

ExplodeAndBlind

public ExplodeAndBlind()
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. In this case, explodes the attacker with a flash of blinding light.

Parameters:
attacker - the rust monster or whatever
defender - the player being attacked
event - the HitCommand event