com.devbridie.wizardsandwarriors.framework / System
abstract class System<S : State>
A System holds a State and knows how to execute commands by resolving a collection of Rules.
| Name | Summary |
|---|---|
| <init> | System(initialState: S)A System holds a State and knows how to execute commands by resolving a collection of Rules. |
| Name | Summary |
|---|---|
| currentState | var currentState: S |
| 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. |
| Name | Summary |
|---|---|
| WizardsAndWarriorsGame | class WizardsAndWarriorsGame : System<WizardsAndWarriorsGameState> |