Class PieceOfGear<V extends IVariantMode, U extends IUsageMode, A extends PieceOfGearVariant<V>, B extends AlternateUsage<U>>
java.lang.Object
de.rpgframework.genericrpg.data.DataItem
de.rpgframework.genericrpg.data.ComplexDataItem
de.rpgframework.genericrpg.items.AGearData
de.rpgframework.genericrpg.items.PieceOfGear<V,U,A,B>
- All Implemented Interfaces:
ChoiceOrigin,Cloneable
public abstract class PieceOfGear<V extends IVariantMode, U extends IUsageMode, A extends PieceOfGearVariant<V>, B extends AlternateUsage<U>>
extends AGearData
-
Field Summary
FieldsModifier and TypeFieldDescriptionSecondary ways to use this - like a dagger that can be thrown or used in close combatprotected booleanIs this an item where counting instances shall be possible?protected List<OperationMode> protected intprotected ModifiedObjectTypeprotected booleanstatic final UUIDOther versions of this item you can buyFields inherited from class de.rpgframework.genericrpg.items.AGearData
attributes, cache, flags, usagesFields 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 TypeMethodDescriptionvoidaddVariant(A variant) dump()getAttributes(String variantID) intgetUnits()getVariant(CarryMode carry) getVariant(String id) booleanbooleanbooleanvoidvalidate()Used in deriving classes to perform validation checks on loading, if necessaryMethods inherited from class de.rpgframework.genericrpg.items.AGearData
addFlags, addUsage, getAttribute, getAttributes, getFlags, getTypeData, getTypeData, getUsage, getUsages, hasFlag, setAttribute, setAttribute, setAttribute, setAttributeMethods inherited from class de.rpgframework.genericrpg.data.ComplexDataItem
addChoice, addOutgoingModifications, addUserSelectableFlag, getChoice, getChoice, getChoiceName, getChoiceOptionString, getChoiceOptionStrings, getChoices, getHardcodedChoice, getModificationChoice, getOutgoingModifications, getRequirements, getUserSelectableFlags, getVariantName, hasLevel, hasUserSelectableFlag, resolveWithinItem, setHasLevelMethods inherited from class de.rpgframework.genericrpg.data.DataItem
addLanguageAlternative, assignToDataSet, getAssignedDataSets, getDescription, getDescription, getFirstParent, getId, getLanguage, getLanguageAlternative, getLanguageAlternatives, getLocalizedString, getLocalizedString, getName, getName, getPageReferences, getResource, getShortName, getTypeString, hasLanguageAlternative, hasLicense, hasLicense, inDataSets, preferWithLocale, setId, setParentItem, toListPreferringLocale, toString
-
Field Details
-
VARIANT
-
variants
@ElementList(entry="variant", type=PieceOfGearVariant.class, inline=true) protected List<A extends PieceOfGearVariant<V>> variantsOther versions of this item you can buy -
requireVariant
@Attribute(name="reqVariant") protected boolean requireVariant -
alternates
@ElementList(entry="alternate", type=AlternateUsage.class, inline=true) protected List<B extends AlternateUsage<U>> alternatesSecondary ways to use this - like a dagger that can be thrown or used in close combat -
price
@Attribute protected int price -
modes
@ElementList(entry="mode", type=OperationMode.class, inline=true) protected List<OperationMode> modes -
countable
@Attribute(name="count") protected boolean countableIs this an item where counting instances shall be possible? -
refType
-
-
Constructor Details
-
PieceOfGear
public PieceOfGear()
-
-
Method Details
-
getVariants
-
getVariant
-
getVariant
-
addVariant
-
getAttributes
- Overrides:
getAttributesin classAGearData
-
getChoice
- Specified by:
getChoicein interfaceChoiceOrigin- Overrides:
getChoicein classComplexDataItem- See Also:
-
getAlternates
-
getOperationModes
-
validate
public void validate()Description copied from class:ComplexDataItemUsed in deriving classes to perform validation checks on loading, if necessary -
dump
-
isModOnly
public boolean isModOnly()- Returns:
- the modOnly
-
isCountable
public boolean isCountable()- Returns:
- the countable
-
getUnits
public int getUnits() -
getReferenceType
-
requiresVariant
public boolean requiresVariant()
-