Modul de.rpgframework.rules
Klasse DataItemModification
java.lang.Object
de.rpgframework.genericrpg.modification.Modification
de.rpgframework.genericrpg.modification.DataItemModification
- Bekannte direkte Unterklassen:
AllowModification,ApplyableValueModification,EmbedModification,RecommendationModification,ValueModification
@Root(name="itemmod")
public class DataItemModification
extends Modification
implements Cloneable, Datable
A modification made to the current item it is attached to
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.rpgframework.genericrpg.modification.Modification
Modification.Origin -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected UUIDprotected StringFor modifications with a choice, this can limit the optionsprotected Dateprotected intprotected UUIDMay be used to identify automatically added elements - e.g.protected Stringprotected booleanprotected StringIdentifier of mode when the modification applies.protected StringVon Klasse geerbte Felder de.rpgframework.genericrpg.modification.Modification
apply, conditions, origin, source, type, when -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()booleanString[]getDate()Return the date of the changegetDecision(UUID uuid) intgetId()getKey()<T> TbooleanisRemove()voidSet the date of the changevoidsetDecisions(List<Decision> decisions) voidsetExpCost(int expCost) voidvoidvoidsetRemove(boolean remove) toString()voidvalidate()Validate content in this modification during loadVon Klasse geerbte Methoden de.rpgframework.genericrpg.modification.Modification
getApplyTo, getConditionString, getOrigin, getReferenceType, getSource, getWhen, isConditional, setApplyTo, setConditionString, setOrigin, setSource, setWhen
-
Felddetails
-
ref
-
variant
-
choice
-
remove
@Attribute protected boolean remove -
choiceOptions
For modifications with a choice, this can limit the options -
restrictedToMode
Identifier of mode when the modification applies. Prepend a '!' to express a mode that may NOT be active -
decisions
-
expCost
@Attribute protected int expCost -
date
-
id
May be used to identify automatically added elements - e.g. like a lifestyle added to a character - and therefore prevent duplicate additions
-
-
Konstruktordetails
-
DataItemModification
public DataItemModification() -
DataItemModification
-
-
Methodendetails
-
clone
- Setzt außer Kraft:
clonein KlasseModification
-
equals
- Setzt außer Kraft:
equalsin KlasseModification
-
toString
-
getKey
-
setKey
-
getResolvedKey
public <T> T getResolvedKey() -
getAsKeys
-
getConnectedChoice
-
validate
Beschreibung aus Klasse kopiert:ModificationValidate content in this modification during load- Setzt außer Kraft:
validatein KlasseModification- Löst aus:
ReferenceException- Siehe auch:
-
getDecisions
-
getDecision
-
setDecisions
-
getChoiceOptions
- Gibt zurück:
- the choiceOptions
-
getExpCost
public int getExpCost()- Gibt zurück:
- the expCost
-
setExpCost
public void setExpCost(int expCost) - Parameter:
expCost- the expCost to set
-
getDate
Beschreibung aus Schnittstelle kopiert:DatableReturn the date of the change -
setDate
Beschreibung aus Schnittstelle kopiert:DatableSet the date of the change -
isRemove
public boolean isRemove()- Gibt zurück:
- the remove
-
setRemove
public void setRemove(boolean remove) - Parameter:
remove- the remove to set
-
getVariant
- Gibt zurück:
- the variant
-
getId
- Gibt zurück:
- the id
-
setId
-