Modul de.rpgframework.rules
Package de.rpgframework.genericrpg.items
Klasse CarriedItem<T extends PieceOfGear>
java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.data.DataItemValue<T>
de.rpgframework.genericrpg.data.ComplexDataItemValue<T>
de.rpgframework.genericrpg.items.CarriedItem<T>
- Alle implementierten Schnittstellen:
DecisionContainer,IReferenceResolver,ResolvableDataItem<T>,Modifyable,NumericalValue<T>,SelectedValue<T>
@Root(name="item")
public class CarriedItem<T extends PieceOfGear>
extends ComplexDataItemValue<T>
implements IReferenceResolver
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected Stringprotected List<CarriedItem<?>> protected List<ItemEnhancementValue> protected booleanItem needs recalculationprotected booleanprotected int[]protected CarriedItem<T> protected List<Requirement> protected Map<Hook, AAvailableSlot<? extends Hook, T>> protected LifeformVon Klasse geerbte Felder de.rpgframework.genericrpg.data.ComplexDataItemValue
autoFlags, decisions, flags, uuidVon Klasse geerbte Felder de.rpgframework.genericrpg.data.DataItemValue
character, customName, injectedBy, language, ref, resolved, valueVon Klasse geerbte Felder de.rpgframework.genericrpg.modification.ModifyableImpl
incomingModifications, outgoingModifications -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCarriedItem(CarriedItem<T> toCopy) CarriedItem(T item, PieceOfGearVariant<?> variant, CarryMode mode) Use the item in NORMAL usage -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddAccessory(CarriedItem<T> val, Hook slot) voidaddAlternates(CarriedItem<?> alt) voidvoidvoidvoidvoidaddSlot(AAvailableSlot slot) voidvoiddump()List<CarriedItem<T>> List<CarriedItem<T>> getAccessory(String id, String variant) getActiveOperationModes(boolean recursive) List<CarriedItem<?>> <A extends IItemAttribute>
ItemAttributeFloatValue<A> getAsFloat(A attrib) <A extends IItemAttribute>
ItemAttributeObjectValue<A> getAsObject(A attrib) <A extends IItemAttribute>
ItemAttributeNumericalValue<A> getAsValue(A attrib) intgetCount()<E extends AItemEnhancement>
ItemEnhancementValue<E> getEnhancement(E data) <E extends AItemEnhancement>
List<ItemEnhancementValue<E>> byte[]getImage()int[]intgetNameWithCount(Locale loc) getNameWithRating(Locale loc) getNotes()getOperationModes(boolean recursive) <A extends AAvailableSlot<? extends Hook,T>>
ACollection<AAvailableSlot<? extends Hook, T>> getSlots()getUser()getUuid()booleanbooleanhasEnhancement(AItemEnhancement value) booleanisDirty()<A extends IItemAttribute>
booleanisFloat(A attrib) booleanremoveAccessory(CarriedItem<T> val, Hook slot) voidvoidremoveSlot(Hook hook) voidreset()Remove all incoming and outgoing modifications<T> TresolveItem(String key) voidsetAllowedHooks(Collection<Usage> value) voidsetAttribute(IItemAttribute attrib, ItemAttributeValue val) voidsetCarryMode(CarryMode mode) voidsetCount(int count) voidsetDecisions(List<Decision> val) voidsetDirty(boolean dirty) voidsetImage(byte[] image) voidsetLastRecalculateResult(OperationResult<List<Modification>> unprocessed) voidsetMode(OperationMode mode, boolean active) voidsetModificationSlotChanges(int[] modificationSlotChanges) voidvoidsetParent(CarriedItem<T> parent) voidsetResolved(T template, PieceOfGearVariant variant) voidsetUsedSlot(Hook slot) voidvoidsetVariant(PieceOfGearVariant variant) toString()Von Klasse geerbte Methoden de.rpgframework.genericrpg.data.ComplexDataItemValue
addAutoFlag, addAutoFlag, addDecision, addFlag, clearAutoFlags, clearEmptyFlags, getAutoFlags, getChoiceMapRecursivly, getDecision, getDecisionArray, getDecisionByRef, getDecisionByType, getDecisions, getDecisionString, getDecisionString, getFlags, getPerDecisionString, getPool, hasAutoFlag, hasFlag, hasFlag, removeAutoFlag, removeDecision, removeDecision, removeFlag, setAutoFlag, setAutoFlag, setFlag, setPool, setUuid, updateDecision, updateOutgoingModificiationsVon Klasse geerbte Methoden de.rpgframework.genericrpg.data.DataItemValue
getCharacter, getCustomName, getDistributed, getInjectedBy, getKey, getLanguage, getModifyable, getNameWithoutDecisions, getNameWithRating, getResolved, getShortName, isAutoAdded, setCharacter, setCustomName, setDistributed, setInjectedBy, setLanguage, setResolvedVon Klasse geerbte Methoden de.rpgframework.genericrpg.modification.ModifyableImpl
addIncomingModification, addModifications, addOutgoingModification, clearIncomingModifications, clearOutgoingModifications, getIncomingModifications, getOutgoingModifications, removeIncomingModification, removeIncomingModificationForSource, removeIncomingModifications, setIncomingModificationsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden de.rpgframework.genericrpg.NumericalValue
getDistributed, setDistributedVon Schnittstelle geerbte Methoden de.rpgframework.genericrpg.SelectedValue
getModifyable
-
Felddetails
-
activeMode
-
modificationSlotChanges
@Attribute(name="changes") @AttribConvert(IntegerArrayConverter.class) protected int[] modificationSlotChanges -
requirements
-
user
-
isInitialized
protected transient boolean isInitialized -
slots
-
autoEnhancements
-
alternates
-
dirty
protected transient boolean dirtyItem needs recalculation -
parent
-
-
Konstruktordetails
-
CarriedItem
public CarriedItem() -
CarriedItem
-
CarriedItem
Use the item in NORMAL usage
-
-
Methodendetails
-
deepCopy
public static Map<IItemAttribute,ItemAttributeValue<IItemAttribute>> deepCopy(Map<IItemAttribute, ItemAttributeValue<IItemAttribute>> old) -
toString
-
getNameWithoutRating
- Setzt außer Kraft:
getNameWithoutRatingin KlasseComplexDataItemValue<T extends PieceOfGear>
-
getNameWithoutRating
- Setzt außer Kraft:
getNameWithoutRatingin KlasseComplexDataItemValue<T extends PieceOfGear>
-
getNameWithRating
- Setzt außer Kraft:
getNameWithRatingin KlasseComplexDataItemValue<T extends PieceOfGear>- Siehe auch:
-
getNameWithCount
-
getTemplateID
-
setResolved
-
getAttributes
-
getAttributeKeys
-
getAsValue
-
isFloat
-
getAsFloat
-
getAsObject
-
setDecisions
-
getUuid
- Setzt außer Kraft:
getUuidin KlasseComplexDataItemValue<T extends PieceOfGear>- Gibt zurück:
- the uuid
-
setAttribute
-
getAttributeRaw
-
dump
-
getVariantID
- Gibt zurück:
- the variantRef
-
getVariant
- Gibt zurück:
- the variant
-
setVariant
- Parameter:
variant- the variant to set
-
addRequirement
-
getRequirements
-
getCount
public int getCount()- Gibt zurück:
- the count
-
setCount
public void setCount(int count) - Parameter:
count- the count to set
-
getUser
- Gibt zurück:
- the user
-
setUser
- Parameter:
user- the user to set
-
addAccessory
-
removeAccessory
-
getAccessories
-
getAccessory
-
getEffectiveAccessories
-
reset
public void reset()Beschreibung aus Klasse kopiert:ComplexDataItemValueRemove all incoming and outgoing modifications- Setzt außer Kraft:
resetin KlasseComplexDataItemValue<T extends PieceOfGear>- Siehe auch:
-
getSlot
-
getSlots
-
addSlot
-
removeSlot
-
getUsedSlot
- Gibt zurück:
- the slot
-
setUsedSlot
- Parameter:
slot- the slot to set
-
getCarryMode
- Gibt zurück:
- the mode
-
setCarryMode
- Parameter:
mode- the mode to set
-
getNotes
- Gibt zurück:
- the notes
-
setNotes
- Parameter:
notes- the notes to set
-
getImage
public byte[] getImage() -
setImage
public void setImage(byte[] image) -
hasAttribute
-
isDirty
public boolean isDirty()- Gibt zurück:
- the dirty
-
setDirty
public void setDirty(boolean dirty) - Parameter:
dirty- the dirty to set
-
getEmbeddedItem
-
getOperationModes
-
getActiveOperationModes
-
setMode
-
addAutoEnhancement
-
getEnhancements
-
getEnhancement
-
hasEnhancement
-
addEnhancement
-
removeEnhancement
-
getModificationSlotsUsed
public int getModificationSlotsUsed() -
getAlternates
-
addAlternates
-
clearAlternates
public void clearAlternates() -
resolveItem
- Angegeben von:
resolveItemin SchnittstelleIReferenceResolver- Siehe auch:
-
getParent
-
setParent
-
getModificationSlotChanges
public int[] getModificationSlotChanges()- Gibt zurück:
- the modificationSlotChanges
-
setModificationSlotChanges
public void setModificationSlotChanges(int[] modificationSlotChanges) - Parameter:
modificationSlotChanges- the modificationSlotChanges to set
-
setLastRecalculateResult
-
getLastRecalculateResult
-
clearModificationsFromCharacter
public void clearModificationsFromCharacter() -
addModificationFromCharacter
-
getAllowedHooks
-
setAllowedHooks
-