wyvern.lib.combat
Class PoisonSting

java.lang.Object
  extended bywyvern.kernel.combat.BodyPart
      extended bywyvern.kernel.combat.AttackingBodyPart
          extended bywyvern.lib.combat.PoisonSting
All Implemented Interfaces:
Attack, MethodHookable
Direct Known Subclasses:
PoisonBite

public class PoisonSting
extends AttackingBodyPart

An attacking body part that poisons in addition to its normal damage. Useful for stings, bites, cuts and other poisonous animal/monster attacks.

Version:
1.0, Apr 14, 2000
Author:
Steve Yegge

Field Summary
 
Fields inherited from class wyvern.kernel.combat.AttackingBodyPart
dtypes_, tohit_
 
Fields inherited from class wyvern.kernel.combat.BodyPart
hitWeight_, name_, pluralName_, slots_, uniqueName_
 
Constructor Summary
PoisonSting()
           
 
Method Summary
 void addWCs()
          Instructs the subclass to add one DamageType object for each damage type the body-part does when it strikes.
 void didDamage(DamageEvent event)
          The attack did its normal damage; now add the poison.
 boolean equals(java.lang.Object o)
          Returns true if the passed object equals this one, for purposes of serialization.
 java.lang.String getName()
          Returns the singular name of the part (e.g.
 java.lang.String getPluralName()
          Returns the plural name of the part (e.g.
 
Methods inherited from class wyvern.kernel.combat.AttackingBodyPart
addDamageType, addMethodHook, getToHit, getWC, getWeaponSkill, makeClone, recomputeWCs, removeMethodHook, runMethodHook, setShowAttackerMessage, setToHit, setWC, setWC, showAttackerMessage, toString
 
Methods inherited from class wyvern.kernel.combat.BodyPart
getProbability, getSlots, getTotalAC, getUniqueName, makeSingleSlot, setName, setPluralName, setProbability, setUniqueName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoisonSting

public PoisonSting()
Method Detail

addWCs

public void addWCs()
Instructs the subclass to add one DamageType object for each damage type the body-part does when it strikes.

Specified by:
addWCs in class AttackingBodyPart

didDamage

public void didDamage(DamageEvent event)
The attack did its normal damage; now add the poison.

Specified by:
didDamage in interface Attack
Overrides:
didDamage in class AttackingBodyPart

getName

public java.lang.String getName()
Description copied from class: BodyPart
Returns the singular name of the part (e.g. "foot")

Overrides:
getName in class BodyPart

getPluralName

public java.lang.String getPluralName()
Description copied from class: BodyPart
Returns the plural name of the part (e.g. "feet")

Overrides:
getPluralName in class BodyPart

equals

public boolean equals(java.lang.Object o)
Returns true if the passed object equals this one, for purposes of serialization.

Overrides:
equals in class BodyPart