- All Known Implementing Classes:
DoubleRule
public interface ValidateableRule
A type of game rule which can validate an input.
This can be used to enforce syntax or clamp values.
-
Method Summary 
boolean
Validates if a rule can accept the input.
-
Method Details 
-
validate 
boolean validate(String value)
Validates if a rule can accept the input.
If valid, the input will be set as the rule's value.
- Parameters:
value
- the value to validate
- Returns:
- true if the value was accepted.