Class ItemAttributeNumericalValue<A extends IItemAttribute>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.items.ItemAttributeValue<A>
de.rpgframework.genericrpg.items.ItemAttributeNumericalValue<A>
- All Implemented Interfaces:
Modifyable,ModifyableNumericalValue<A>,NumericalValue<A>,SelectedValue<A>,Cloneable
public class ItemAttributeNumericalValue<A extends IItemAttribute>
extends ItemAttributeValue<A>
implements ModifyableNumericalValue<A>
-
Field Summary
FieldsFields inherited from class de.rpgframework.genericrpg.items.ItemAttributeValue
attributeFields inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Constructor Summary
ConstructorsConstructorDescriptionItemAttributeNumericalValue(A attr) ItemAttributeNumericalValue(A attr, int val) -
Method Summary
Modifier and TypeMethodDescriptionclone()intReturns the points invested into this valueintShortcut to getModifiedValue(NATURAL, AUGMENTED)intgetModifiedValue(ValueType... type) intShortcut to getModifiedValue(AUGMENTED)voidsetDistributed(int points) Set the points invested into this value;toString()Methods inherited from class de.rpgframework.genericrpg.items.ItemAttributeValue
getModifyable, getPool, setPoolMethods 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
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
getModifier, getPoolMethods inherited from interface de.rpgframework.genericrpg.SelectedValue
getModifyable
-
Field Details
-
value
@Attribute(name="value") protected int value
-
-
Constructor Details
-
ItemAttributeNumericalValue
-
ItemAttributeNumericalValue
-
ItemAttributeNumericalValue
-
-
Method Details
-
clone
- Specified by:
clonein classItemAttributeValue<A extends IItemAttribute>- See Also:
-
toString
-
getDistributed
public int getDistributed()Description copied from interface:NumericalValueReturns the points invested into this value- Specified by:
getDistributedin interfaceNumericalValue<A extends IItemAttribute>- Returns:
- Invested points
- See Also:
-
setDistributed
public void setDistributed(int points) Description copied from interface:NumericalValueSet the points invested into this value;- Specified by:
setDistributedin interfaceNumericalValue<A extends IItemAttribute>- See Also:
-
getModifier
public int getModifier()Description copied from interface:ModifyableNumericalValueShortcut to getModifiedValue(AUGMENTED)- Specified by:
getModifierin interfaceModifyableNumericalValue<A extends IItemAttribute>- Returns:
- See Also:
-
getModifiedValue
public int getModifiedValue()Description copied from interface:ModifyableNumericalValueShortcut to getModifiedValue(NATURAL, AUGMENTED)- Specified by:
getModifiedValuein interfaceModifyableNumericalValue<A extends IItemAttribute>- Returns:
- See Also:
-
getModifiedValue
- Specified by:
getModifiedValuein interfaceModifyableNumericalValue<A extends IItemAttribute>- See Also:
-