org.jadv.basic
Class WeaponStats

java.lang.Object
  |
  +--org.jadv.basic.WeaponStats
All Implemented Interfaces:
java.io.Serializable

public class WeaponStats
extends java.lang.Object
implements java.io.Serializable

The stats of a Weapon

Author:
neitzel
See Also:
Serialized Form

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

_PA

public int _PA

_AT

public int _AT

_GoodPACount

public int _GoodPACount

_GoodATCount

public int _GoodATCount
Constructor Detail

WeaponStats

public WeaponStats(int AT,
                   int PA)
Creates a new instance of WeaponSubStats


WeaponStats

public WeaponStats(java.lang.String values)
Creates a new instance of WeaponSubStats

Method Detail

createWeaponStats

public static WeaponStats[] createWeaponStats(java.lang.String values)
Create a new array of WeaponStats


getPA

public int getPA()

getAT

public int getAT()

getValues

public java.lang.String getValues()
Get all Values in one single String This is used to store everything inside a Attribute

Returns:
String

goodPA

public void goodPA()

goodAT

public void goodAT()

reachedLevel

public 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, ....)


setPA

public void setPA(int PA)

setAT

public void setAT(int AT)