Class ValueRequirement
java.lang.Object
de.rpgframework.genericrpg.requirements.Requirement
de.rpgframework.genericrpg.requirements.ValueRequirement
-
Field Summary
FieldsFields inherited from class de.rpgframework.genericrpg.requirements.Requirement
apply, reference, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the declaration like it appears in the XML definition.intgetValue()voidsetFormula(Formula value) voidsetRawValue(String val) voidtoString()
-
Field Details
-
value
-
max
-
-
Constructor Details
-
ValueRequirement
public ValueRequirement() -
ValueRequirement
-
-
Method Details
-
toString
-
getChoice
- Returns:
- the choice
-
getValue
public int getValue()- Returns:
- The amount by which the value must be changed
-
getMaxValue
public int getMaxValue() -
getFormula
-
setFormula
-
getRawValue
Returns the declaration like it appears in the XML definition. Use this method, if the value contains variables/formulas -
setRawValue
-
setValue
- Parameters:
value- The amount by which the value must be changed
-
getVariantId
- Returns:
- the variantId
-