|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jadv.basic.WeaponStats
The stats of a Weapon
Field Summary | |
int |
_AT
|
int |
_GoodATCount
|
int |
_GoodPACount
|
int |
_PA
|
Constructor Summary | |
WeaponStats(int AT,
int PA)
Creates a new instance of WeaponSubStats |
|
WeaponStats(java.lang.String values)
Creates a new instance of WeaponSubStats |
Method Summary | |
static WeaponStats[] |
createWeaponStats(java.lang.String values)
Create a new array of WeaponStats |
int |
getAT()
|
int |
getPA()
|
java.lang.String |
getValues()
Get all Values in one single String This is used to store everything inside a Attribute |
void |
goodAT()
|
void |
goodPA()
|
boolean |
reachedLevel(int value)
reachedLevel Calculates, if we reached a new level in AT / PA (Level were reached at 10, 20, 40, 80, 160, 320, ....) |
void |
setAT(int AT)
|
void |
setPA(int PA)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int _PA
public int _AT
public int _GoodPACount
public int _GoodATCount
Constructor Detail |
public WeaponStats(int AT, int PA)
public WeaponStats(java.lang.String values)
Method Detail |
public static WeaponStats[] createWeaponStats(java.lang.String values)
public int getPA()
public int getAT()
public java.lang.String getValues()
public void goodPA()
public void goodAT()
public boolean reachedLevel(int value)
public void setPA(int PA)
public void setAT(int AT)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |