|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.items.WeaponAttack
public class WeaponAttack
Utility type for Attack. An attack contains up to 3 possibile types of damage (WeaponDamage): cutting, crushing, impalling. If an attack does not contain one of the specified types of damage, the corresponding WeaponDamage is valued to WeaponDamage.NONE (Nothing)
| Constructor Summary | |
|---|---|
WeaponAttack(WeaponDamage dTaglio,
WeaponDamage dBotta,
WeaponDamage dImpalamento)
Constructs new type for Attacks available for a weapon. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getAttacks()
Return an array of String determining a long description for each available Attack |
WeaponDamage |
getCrushingDamage()
Return Crushing WeaponDamage |
WeaponDamage |
getCuttingDamage()
Return Cutting WeaponDamage |
WeaponDamage |
getImpalingDamage()
Return Impaling WeaponDamage |
int |
getIndexAttacks(DamageMode weaponMode)
If getAttacks returns 3 different types of attacks, when you pass the mode for this weapon, ie: Weapon.MODE_IMP, this method returns the position of that mode in that array. |
int |
getNumAttacks()
Get the number of available attacks for this weapon (0-3) |
java.lang.String |
toString()
Long description of all available attack for this weapon. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeaponAttack(WeaponDamage dTaglio,
WeaponDamage dBotta,
WeaponDamage dImpalamento)
dTaglio - WeaponDamage for cutting modedBotta - WeaponDamage for crushing modedImpalamento - WeaponDamage for impaling mode| Method Detail |
|---|
public WeaponDamage getCuttingDamage()
WeaponDamagepublic WeaponDamage getCrushingDamage()
WeaponDamagepublic WeaponDamage getImpalingDamage()
WeaponDamagepublic int getNumAttacks()
public java.lang.String[] getAttacks()
public int getIndexAttacks(DamageMode weaponMode)
weaponMode - The weapon mode as in Weapon (MODE_CRU, MODE_CUT, MODE_IMP)
public java.lang.String toString()
toString in class java.lang.Object
|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||