com.devbridie.wizardsandwarriors.framework / Rule
interface Rule<in CP : CommandParameters, out E : Effect>
Represents a piece of business logic in a System.
Uses CP to determine if this rule isApplicable and what the Effect result should be.
| Name | Summary |
|---|---|
| getEffect | abstract fun getEffect(parameters: CP): E |
| isApplicable | abstract fun isApplicable(parameters: CP): Boolean |