wyvern.lib.monsters
Class FearAttack

java.lang.Object
  extended bywyvern.lib.monsters.AbstractCounterAttack
      extended bywyvern.lib.monsters.FearAttack
All Implemented Interfaces:
CounterAttack

public class FearAttack
extends AbstractCounterAttack

Attack for truly terrifying monsters. Inflicts fear as a counter attack.

Version:
1.0, Sep 14, 2002
Author:
Frank Sronce

Field Summary
 
Fields inherited from class wyvern.lib.monsters.AbstractCounterAttack
chance_, DEFAULT_CHANCE, level_
 
Constructor Summary
FearAttack()
           
 
Method Summary
 void notifyAttacked(GameObject attacker, GameObject defender, Attack attack)
          Triggers the counter-attack.
 
Methods inherited from class wyvern.lib.monsters.AbstractCounterAttack
getChance, getLevel, setChance, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FearAttack

public FearAttack()
Method Detail

notifyAttacked

public void notifyAttacked(GameObject attacker,
                           GameObject defender,
                           Attack attack)
Triggers the counter-attack.

Parameters:
attacker - the attacker (can be null)
defender - the defender (the one with this counterattack)
attack - the weapon (can be null)