wizardsandwarriors

com.devbridie.wizardsandwarriors.sample / WizardsAndWarriorsGame

WizardsAndWarriorsGame

class WizardsAndWarriorsGame : System<WizardsAndWarriorsGameState>

Constructors

Name Summary
<init> WizardsAndWarriorsGame(initialState: WizardsAndWarriorsGameState = WizardsAndWarriorsGameState())

Inherited Properties

Name Summary
currentState var currentState: S

Functions

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>

Inherited 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.