Class ChoiceOption
java.lang.Object
de.rpgframework.genericrpg.data.DataItem
de.rpgframework.genericrpg.data.ComplexDataItem
de.rpgframework.genericrpg.data.ChoiceOption
- All Implemented Interfaces:
ChoiceOrigin
-
Field Summary
FieldsFields inherited from class de.rpgframework.genericrpg.data.ComplexDataItem
choices, hasLevel, modifications, requires, userSelectableFlagsFields inherited from class de.rpgframework.genericrpg.data.DataItem
datasets, id, lang, languageAlternatives, logger, parentItem, parentSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetCost()getDescription(Locale locale) voidsetCost(float cost) Methods inherited from class de.rpgframework.genericrpg.data.ComplexDataItem
addChoice, addOutgoingModifications, addUserSelectableFlag, getChoice, getChoice, getChoice, getChoiceName, getChoiceOptionString, getChoiceOptionStrings, getChoices, getHardcodedChoice, getModificationChoice, getOutgoingModifications, getRequirements, getUserSelectableFlags, getVariantName, hasLevel, hasUserSelectableFlag, resolveWithinItem, setHasLevel, validateMethods inherited from class de.rpgframework.genericrpg.data.DataItem
addLanguageAlternative, assignToDataSet, getAssignedDataSets, getDescription, getFirstParent, getId, getLanguage, getLanguageAlternative, getLanguageAlternatives, getLocalizedString, getLocalizedString, getName, getPageReferences, getResource, getShortName, getTypeString, hasLanguageAlternative, hasLicense, hasLicense, inDataSets, preferWithLocale, setId, setParentItem, toListPreferringLocale, toString
-
Field Details
-
attributes
@ElementList(entry="attrdef", type=ItemAttributeDefinition.class, inline=true) protected List<ItemAttributeDefinition> attributes
-
-
Constructor Details
-
ChoiceOption
public ChoiceOption()
-
-
Method Details
-
getCost
public float getCost()- Returns:
- the cost
-
setCost
public void setCost(float cost) - Parameters:
cost- the cost to set
-
getName
-
getDescription
- Overrides:
getDescriptionin classDataItem- See Also:
-
getAttributes
-