Class EmbedModification
java.lang.Object
de.rpgframework.genericrpg.modification.Modification
de.rpgframework.genericrpg.modification.DataItemModification
de.rpgframework.genericrpg.modification.EmbedModification
@Root(name="embed")
public class EmbedModification
extends DataItemModification
implements Cloneable
Use this modification to put gear into available slots of other gear
when defining gear in XML.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.rpgframework.genericrpg.modification.Modification
Modification.Origin -
Field Summary
Fields inherited from class de.rpgframework.genericrpg.modification.DataItemModification
choice, choiceOptions, date, decisions, expCost, id, ref, remove, restrictedToMode, variantFields inherited from class de.rpgframework.genericrpg.modification.Modification
apply, conditions, origin, source, type, when -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()<T extends Hook>
TgetHook()booleanShall the added item be ignored for used capacity calculationbooleanbooleanbooleanAre effects of this item already included in the stats of the item is it added tovoidsetCount(int count) voidvalidate()Validate content in this modification during loadMethods inherited from class de.rpgframework.genericrpg.modification.DataItemModification
clone, equals, getAsKeys, getChoiceOptions, getConnectedChoice, getDate, getDecision, getDecisions, getExpCost, getId, getKey, getResolvedKey, getVariant, isRemove, setDate, setDecisions, setExpCost, setId, setKey, setRemove, toStringMethods inherited from class de.rpgframework.genericrpg.modification.Modification
getApplyTo, getConditionString, getOrigin, getReferenceType, getSource, getWhen, isConditional, setApplyTo, setConditionString, setOrigin, setSource, setWhen
-
Constructor Details
-
EmbedModification
public EmbedModification()
-
-
Method Details
-
getHook
-
isIncludedInStats
public boolean isIncludedInStats()Are effects of this item already included in the stats of the item is it added to -
ignoreForCapacity
public boolean ignoreForCapacity()Shall the added item be ignored for used capacity calculation -
validate
Description copied from class:ModificationValidate content in this modification during load- Overrides:
validatein classDataItemModification- Throws:
ReferenceException- See Also:
-
getCount
public int getCount()- Returns:
- the count
-
setCount
public void setCount(int count) - Parameters:
count- the count to set
-
getIntoId
- Returns:
- the intoId
-
getIntoType
- Returns:
- the intoType
-
getIntoRef
- Returns:
- the intoRef
-
isIncluded
public boolean isIncluded()- Returns:
- the included
-
isIgnoreForCapacity
public boolean isIgnoreForCapacity()- Returns:
- the ignoreForCapacity
-