wizardsandwarriors

com.devbridie.wizardsandwarriors.framework / System

System

abstract class System<S : State>

A System holds a State and knows how to execute commands by resolving a collection of Rules.

Constructors

Name Summary
<init> System(initialState: S)
A System holds a State and knows how to execute commands by resolving a collection of Rules.

Properties

Name Summary
currentState var currentState: S

Functions

Name Summary
executeCommand 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.

Inheritors

Name Summary
WizardsAndWarriorsGame class WizardsAndWarriorsGame : System<WizardsAndWarriorsGameState>