com.devbridie.wizardsandwarriors.sample / WizardsAndWarriorsGame
class WizardsAndWarriorsGame :
System
<
WizardsAndWarriorsGameState
>
Name | Summary |
---|---|
<init> | WizardsAndWarriorsGame(initialState: WizardsAndWarriorsGameState = WizardsAndWarriorsGameState()) |
Name | Summary |
---|---|
currentState | var currentState: S |
Name | Summary |
---|---|
attack | fun attack(attacker: Combattable , attacked: Combattable ): Collection < AttackModifierEffect > |
shopSceneWield | fun shopSceneWield(person: Person , weapon: Weapon ): DisplayWieldEffectEffect |
spawnEnemy | fun spawnEnemy(enemy: Enemy ): Unit |
spawnPerson | fun spawnPerson(person: Person ): Unit |
werewolfAttackSceneAttack | fun werewolfAttackSceneAttack(attacker: Person , attacked: Enemy ): Collection < DisplayAttackResultEffect > |
wield | fun wield(person: Person , weapon: Weapon ): Collection < WieldEffect > |
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. |