Class ComplexDataItemValue<T extends ComplexDataItem>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.data.DataItemValue<T>
de.rpgframework.genericrpg.data.ComplexDataItemValue<T>
- All Implemented Interfaces:
DecisionContainer,ResolvableDataItem<T>,Modifyable,NumericalValue<T>,SelectedValue<T>
- Direct Known Subclasses:
ASkillValue,CarriedItem,ItemEnhancementValue,LevellingProfileValue,SetItemValue,SkillSpecializationValue
public class ComplexDataItemValue<T extends ComplexDataItem>
extends DataItemValue<T>
implements NumericalValue<T>, DecisionContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionFlags added automatically by itemOptional flags added by the user, like "Cheap knock off"protected UUIDFields inherited from class de.rpgframework.genericrpg.data.DataItemValue
character, customName, injectedBy, language, ref, resolved, valueFields inherited from class de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoFlag(Enum<?> flag) voidaddAutoFlag(String flag) voidaddDecision(Decision value) If the referenced ComplexDataItem had choices, these are the decisions.voidvoidvoidgetAutoFlags(Class<E> enumClass) getChoiceMapRecursivly(CommonCharacter<?, ?, ?, ?> model) getDecision(UUID uuid) Decision[]getDecisionByRef(String name) If the referenced ComplexDataItem had choices, these are the decisions.getDecisionString(Locale loc) getDecisionString(Locale loc, CommonCharacter<?, ?, ?, ?> model) getNameWithRating(Locale loc) getPerDecisionString(Choice choice, Object obj, Decision dec, Locale loc) getPool()getUuid()booleanhasAutoFlag(Enum<?> value) booleanbooleanbooleanhasUserFlag(Enum<?> value) voidremoveAutoFlag(Enum<?> flag) voidremoveDecision(Decision value) voidremoveDecision(UUID choiceUUID) voidremoveFlag(Enum<?> flag) voidreset()Remove all incoming and outgoing modificationsvoidsetAutoFlag(Enum<?> flag, boolean set) voidsetAutoFlag(String flag, boolean set) voidvoidvoidvoidupdateDecision(UUID uuid, String value) voidupdateOutgoingModificiations(CommonCharacter<?, ?, ?, ?> model) Get the modifications this DataItemValue provides to others, after taking all decisions into accountMethods inherited from class de.rpgframework.genericrpg.data.DataItemValue
getCharacter, getCustomName, getDistributed, getInjectedBy, getKey, getLanguage, getModifyable, getNameWithoutDecisions, getNameWithRating, getResolved, getShortName, isAutoAdded, setCharacter, setCustomName, setDistributed, setInjectedBy, setLanguage, setResolvedMethods 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, toString, wait, wait, waitMethods inherited from interface de.rpgframework.genericrpg.NumericalValue
getDistributed, setDistributedMethods inherited from interface de.rpgframework.genericrpg.SelectedValue
getModifyable
-
Field Details
-
decisions
-
flags
-
uuid
-
autoFlags
-
-
Constructor Details
-
ComplexDataItemValue
public ComplexDataItemValue() -
ComplexDataItemValue
-
ComplexDataItemValue
-
-
Method Details
-
getDecisions
-
getDecisionArray
-
addDecision
Description copied from interface:DecisionContainerIf the referenced ComplexDataItem had choices, these are the decisions.- Specified by:
addDecisionin interfaceDecisionContainer
-
removeDecision
-
removeDecision
- Specified by:
removeDecisionin interfaceDecisionContainer
-
getDecision
- Specified by:
getDecisionin interfaceDecisionContainer
-
getDecisionByRef
-
getDecisionByType
-
updateDecision
-
getDecisionString
-
getPerDecisionString
-
getDecisionString
-
getNameWithoutRating
- Overrides:
getNameWithoutRatingin classDataItemValue<T extends ComplexDataItem>
-
getNameWithoutRating
- Overrides:
getNameWithoutRatingin classDataItemValue<T extends ComplexDataItem>
-
getNameWithRating
- Overrides:
getNameWithRatingin classDataItemValue<T extends ComplexDataItem>
-
updateOutgoingModificiations
Get the modifications this DataItemValue provides to others, after taking all decisions into account -
addFlag
-
addAutoFlag
-
removeFlag
-
removeAutoFlag
-
addAutoFlag
-
clearEmptyFlags
public void clearEmptyFlags() -
getFlags
-
getAutoFlags
-
hasUserFlag
-
hasFlag
-
hasFlag
-
clearAutoFlags
public void clearAutoFlags() -
hasAutoFlag
-
setFlag
-
setAutoFlag
-
setAutoFlag
-
getChoiceMapRecursivly
-
getUuid
-
setUuid
-
reset
public void reset()Remove all incoming and outgoing modifications -
getPool
-
setPool
-