com.huguesjohnson.tiamat
Class Attribute
java.lang.Object
com.huguesjohnson.tiamat.NamedObject
com.huguesjohnson.tiamat.Attribute
- All Implemented Interfaces:
- Storable
- public class Attribute
- extends NamedObject
Attribute - used to store character attributes
- Author:
- Hugues Johnson
|
Constructor Summary |
Attribute(java.lang.String name,
java.lang.String description,
long baseValue)
|
Attribute(java.lang.String name,
java.lang.String description,
long baseValue,
long currentValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Attribute
public Attribute(java.lang.String name,
java.lang.String description,
long baseValue)
Attribute
public Attribute(java.lang.String name,
java.lang.String description,
long baseValue,
long currentValue)
getBaseValue
public long getBaseValue()
setBaseValue
public void setBaseValue(long baseValue)
getCurrentValue
public long getCurrentValue()
setCurrentValue
public void setCurrentValue(long currentValue)
toString
public java.lang.String toString()
- returns a string representation of the object
- Overrides:
toString in class NamedObject