|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.huguesjohnson.tiamat.NamedObject
com.huguesjohnson.tiamat.Attribute
public class Attribute
Attribute - used to store character attributes
| Constructor Summary | |
|---|---|
Attribute(java.lang.String name,
java.lang.String description,
long baseValue)
Create a new instance of Attribute. |
|
Attribute(java.lang.String name,
java.lang.String description,
long baseValue,
long currentValue)
Create a new instance of Attribute. |
|
| Method Summary | |
|---|---|
long |
getBaseValue()
Returns the base (initial) value for this attribute. |
long |
getCurrentValue()
Returns the current value for this attribute. |
void |
setBaseValue(long baseValue)
Sets the base (initial) value for this attribute. |
void |
setCurrentValue(long currentValue)
Sets the current value for this attribute. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class com.huguesjohnson.tiamat.NamedObject |
|---|
getDescription, getName, onDeserialize, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attribute(java.lang.String name,
java.lang.String description,
long baseValue)
name - The name of this Attribute.description - The description of this Attribute.baseValue - The base (initial) value for this attribute, also sets the current value to this base value.
public Attribute(java.lang.String name,
java.lang.String description,
long baseValue,
long currentValue)
name - The name of this Attribute.description - The description of this Attribute.baseValue - The base (initial) value for this attribute.currentValue - The current value for this attribute.| Method Detail |
|---|
public long getBaseValue()
public void setBaseValue(long baseValue)
baseValue - The new base value.public long getCurrentValue()
public void setCurrentValue(long currentValue)
currentValue - The new current value.public java.lang.String toString()
toString in class NamedObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||