Interface ValidateableRule
- 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
-
Method Details
-
validate
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.
-