wizardsandwarriors

com.devbridie.wizardsandwarriors.framework / System / executeCommand

executeCommand

protected fun <CP : CommandParameters, R : Rule<CP, E>, E : Effect> executeCommand(parameters: CP, rules: List<R>): List<E>

Executes a given command using CommandParameters and a list of Rules.

Parameters

parameters - CommandParameters that describe the circumstances of the command.

rules - List of Rules that are associated with this command.

Return Effects that the rules produce.