|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.combat.DamageType wyvern.kernel.combat.damages.DrownDamage
Drowning damage, from being immersed in water.
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 | |
DrownDamage()
Required no-arg constructor for Class.newInstance() |
|
DrownDamage(int wc)
Constructs a new DrownDamage |
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 |
getNegativeDamageAttackerMessage(GameObject defender)
Returns the message to tell the attacker if the attack resulted in healing the defender. |
java.lang.String |
getNegativeDamageDefenderMessage(GameObject attacker)
Returns the message to tell the defender if the damage is negative; i.e. the defender is getting healed by the attack. |
java.lang.String |
getNoDamageAttackerMessage(GameObject defender)
Returns the message to tell the attacker if the damage amount was zero. |
java.lang.String |
getNoDamageDefenderMessage(GameObject attacker)
Returns the message to tell the defender if the damage was zero. |
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, getWC, setWC, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String[] YOU_DAMAGE_MSGS
public static final java.lang.String[] DAMAGE_YOU_MSGS
Constructor Detail |
public DrownDamage()
public DrownDamage(int wc)
Method Detail |
public java.lang.String getShortName()
getShortName
in class DamageType
public java.lang.String[] getAttackerMessages()
getAttackerMessages
in class DamageType
public java.lang.String[] getDefenderMessages()
getDefenderMessages
in class DamageType
public java.lang.String getNoDamageAttackerMessage(GameObject defender)
getNoDamageAttackerMessage
in class DamageType
defender
- the thing being attacked
public java.lang.String getNegativeDamageAttackerMessage(GameObject defender)
getNegativeDamageAttackerMessage
in class DamageType
defender
- the thing being attacked
public java.lang.String getNoDamageDefenderMessage(GameObject attacker)
getNoDamageDefenderMessage
in class DamageType
attacker
- the thing doing the attack
public java.lang.String getNegativeDamageDefenderMessage(GameObject attacker)
getNegativeDamageDefenderMessage
in class DamageType
attacker
- the thing doing the attack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |