wyvern.lib.combat
Class StingDamage

java.lang.Object
  extended bywyvern.kernel.combat.DamageType
      extended bywyvern.kernel.combat.damages.StabDamage
          extended bywyvern.lib.combat.StingDamage
All Implemented Interfaces:
MeleeDamage

public class StingDamage
extends StabDamage

A damage type that's basically sting damage with different messages, since it's produced by a stinger.

Version:
1.0, Feb 28, 2001
Author:
Steve Yegge

Field Summary
static java.lang.String[] DAMAGE_YOU_MSGS
           
static java.lang.String[] YOU_DAMAGE_MSGS
           
 
Fields inherited from class wyvern.kernel.combat.DamageType
INANIMATE_DAMAGE_MSGS, wc_
 
Constructor Summary
StingDamage()
           
StingDamage(int wc)
           
 
Method Summary
 java.lang.String[] getAttackerMessages()
          Returns an array of messages from least to most.
 java.lang.String[] getDefenderMessages()
          Returns an array of messages from least to most.
 java.lang.String getShortName()
          Returns "fire", "cold", "smash" or whatever else is used in the archetype files for this damage type.
 
Methods inherited from class wyvern.kernel.combat.DamageType
createClone, getAttackerMessagesInanimate, getAttackerMsg, getDamageClass, getDefenderMsg, getNegativeDamageAttackerMessage, getNegativeDamageDefenderMessage, getNoDamageAttackerMessage, getNoDamageDefenderMessage, getWC, setWC, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

YOU_DAMAGE_MSGS

public static final java.lang.String[] YOU_DAMAGE_MSGS

DAMAGE_YOU_MSGS

public static final java.lang.String[] DAMAGE_YOU_MSGS
Constructor Detail

StingDamage

public StingDamage()

StingDamage

public StingDamage(int wc)
Method Detail

getShortName

public java.lang.String getShortName()
Description copied from class: StabDamage
Returns "fire", "cold", "smash" or whatever else is used in the archetype files for this damage type.

Overrides:
getShortName in class StabDamage
Returns:
the damage name

getAttackerMessages

public java.lang.String[] getAttackerMessages()
Description copied from class: StabDamage
Returns an array of messages from least to most.

Overrides:
getAttackerMessages in class StabDamage
Returns:
an array of messages to send to the attacker, depending on the damage done. Default messages are for physical attacks (cut/stab/smash).

getDefenderMessages

public java.lang.String[] getDefenderMessages()
Description copied from class: StabDamage
Returns an array of messages from least to most.

Overrides:
getDefenderMessages in class StabDamage
Returns:
an array of messages to send to the defender depending on the damage done. Default messages are for physical attacks (cut/stab/smash).