Class AttributeValue<A extends IAttribute>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.data.AttributeValue<A>
- All Implemented Interfaces:
Modifyable,ModifyableNumericalValue<A>,NumericalValue<A>,SelectedValue<A>
public class AttributeValue<A extends IAttribute>
extends ModifyableImpl
implements ModifyableNumericalValue<A>
-
Field Summary
Fields inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the points invested into this valueintintgetMaximum(int base) getPool()intgetStart()voidsetDistributed(int value) Set the points invested into this value;voidvoidsetStart(int start) toString()Methods inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
addIncomingModification, addModifications, addOutgoingModification, clearIncomingModifications, clearOutgoingModifications, getIncomingModifications, getOutgoingModifications, removeIncomingModification, removeIncomingModificationForSource, removeIncomingModifications, setIncomingModificationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.rpgframework.genericrpg.modification.Modifyable
addIncomingModification, getIncomingModifications, removeIncomingModification, setIncomingModificationsMethods inherited from interface de.rpgframework.genericrpg.ModifyableNumericalValue
getModifiedValue, getModifiedValue, getModifier, getModifier
-
Constructor Details
-
AttributeValue
public AttributeValue() -
AttributeValue
-
AttributeValue
-
-
Method Details
-
toString
-
getDistributed
public int getDistributed()Description copied from interface:NumericalValueReturns the points invested into this value- Specified by:
getDistributedin interfaceNumericalValue<A extends IAttribute>- Returns:
- Invested points
- See Also:
-
setDistributed
public void setDistributed(int value) Description copied from interface:NumericalValueSet the points invested into this value;- Specified by:
setDistributedin interfaceNumericalValue<A extends IAttribute>- See Also:
-
getModifyable
- Specified by:
getModifyablein interfaceSelectedValue<A extends IAttribute>- See Also:
-
getStart
public int getStart()- Returns:
- the start
-
setStart
public void setStart(int start) - Parameters:
start- the start to set
-
getMaximumBase
-
getMaximum
public int getMaximum(int base) -
getMaximum
public int getMaximum() -
getDisplayString
-
getPool
- Specified by:
getPoolin interfaceModifyableNumericalValue<A extends IAttribute>- See Also:
-
setPool
-