Class DataItemValue<T extends DataItem>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.data.DataItemValue<T>
- All Implemented Interfaces:
ResolvableDataItem<T>,Modifyable,NumericalValue<T>,SelectedValue<T>
- Direct Known Subclasses:
ASkillGroupValue,ComplexDataItemValue
public abstract class DataItemValue<T extends DataItem>
extends ModifyableImpl
implements NumericalValue<T>, ResolvableDataItem<T>, SelectedValue<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommonCharacter<?, ?, ?, ?> The character this item belongs toprotected Stringprotected ObjectFor packs, this is the pack itemprotected StringFor items that have different language versions, this field stores the language used when selectingprotected Stringprotected Tprotected intFields inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommonCharacter<?, ?, ?, ?> intReturns the points invested into this valuegetKey()Return the identifier of the ComplexDataItem connected with this value.getNameWithRating(Locale loc) getShortName(Locale locale) booleanvoidsetCharacter(CommonCharacter<?, ?, ?, ?> character) voidsetCustomName(String customName) voidsetDistributed(int points) Set the points invested into this value;voidsetInjectedBy(Object injectedBy) voidsetLanguage(String language) voidsetResolved(T value) Methods inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
addIncomingModification, addModifications, addOutgoingModification, clearIncomingModifications, clearOutgoingModifications, getIncomingModifications, getOutgoingModifications, removeIncomingModification, removeIncomingModificationForSource, removeIncomingModifications, setIncomingModifications
-
Field Details
-
ref
-
language
For items that have different language versions, this field stores the language used when selecting -
resolved
-
character
The character this item belongs to -
value
@Attribute(name="value") protected int value -
customName
-
injectedBy
For packs, this is the pack item
-
-
Constructor Details
-
DataItemValue
public DataItemValue() -
DataItemValue
-
DataItemValue
-
-
Method Details
-
getKey
Return the identifier of the ComplexDataItem connected with this value.- Specified by:
getKeyin interfaceResolvableDataItem<T extends DataItem>- Returns:
- See Also:
-
setResolved
- Specified by:
setResolvedin interfaceResolvableDataItem<T extends DataItem>- See Also:
-
getResolved
- Specified by:
getResolvedin interfaceResolvableDataItem<T extends DataItem>- See Also:
-
getDistributed
public int getDistributed()Description copied from interface:NumericalValueReturns the points invested into this value- Specified by:
getDistributedin interfaceNumericalValue<T extends DataItem>- 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<T extends DataItem>- See Also:
-
isAutoAdded
public boolean isAutoAdded() -
getModifyable
- Specified by:
getModifyablein interfaceSelectedValue<T extends DataItem>- See Also:
-
getNameWithoutDecisions
-
getNameWithoutRating
-
getNameWithoutRating
-
getNameWithRating
-
getNameWithRating
-
getShortName
-
getCharacter
- Returns:
- the character
-
setCharacter
- Parameters:
character- the character to set
-
getInjectedBy
- Returns:
- the injectedBy
-
setInjectedBy
- Parameters:
injectedBy- the injectedBy to set
-
getCustomName
- Returns:
- the customName
-
setCustomName
- Parameters:
customName- the customName to set
-
getLanguage
- Returns:
- the language
-
setLanguage
- Parameters:
language- the language to set
-