wizardsandwarriors

com.devbridie.wizardsandwarriors.framework / Rule

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.

Functions

Name Summary
getEffect abstract fun getEffect(parameters: CP): E
isApplicable abstract fun isApplicable(parameters: CP): Boolean