|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.combat.WeaponDamage
public class WeaponDamage
This class describe the damage done by a weapon. The damage is decribed by a damage type (SWING, THRUST...) and a modifier
| Constructor Summary | |
|---|---|
WeaponDamage(DamageType damageType,
int mod)
Constructor |
|
WeaponDamage(int tdSW,
int tdTH)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getModifier()
Get modifier for this DamageType, ie: in SWING+3 modifier is 3. |
DamageType |
getType()
Get the damage type |
boolean |
isValid()
If this DamageType is valid for the weapon |
void |
setModifier(int modifier)
Set modifier for this DamageType, ie: in SWING+3 modifier is 3. |
java.lang.String |
toString()
Return description of weapon. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeaponDamage(DamageType damageType,
int mod)
damageType - Either DamageType.SWING or DamageType.THRUSTmod - modifier value for this attack type
public WeaponDamage(int tdSW,
int tdTH)
tdSW - Damage for SWING mode (DamageType.INVALID if this is not a
Swing attack)tdTH - Damage for THRUST mode (DamageType.INVALID if this is not a
Thrust attack)| Method Detail |
|---|
public DamageType getType()
public int getModifier()
public void setModifier(int modifier)
modifier - Modifier for this DamageTypepublic boolean isValid()
public java.lang.String toString()
toString in class java.lang.Object
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||