diff --git a/src/App.vue b/src/App.vue index d782fab..7c973bc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ @@ -13,6 +13,7 @@ import * as Creatures from '@/game/creatures' import * as Items from '@/game/items' import { Creature } from '@/game/entity' import { ProperNoun, TheyPronouns, FemalePronouns, MalePronouns, ImproperNoun } from '@/game/language' +import { Encounter } from './game/combat' @Component({ components: { @@ -20,7 +21,8 @@ import { ProperNoun, TheyPronouns, FemalePronouns, MalePronouns, ImproperNoun } } }) export default class App extends Vue { - combatants: Array + encounter: Encounter + constructor () { super() @@ -73,7 +75,9 @@ export default class App extends Vue { const kenzie = new Creatures.Kenzie() const cafat = new Creatures.Cafat() const wolf = new Creatures.Wolf() - this.combatants = [fighter, withers, wizard, rogue, cleric, kenzie, cafat, wolf] + const combatants = [fighter, withers, wizard, rogue, cleric, kenzie, cafat, wolf] + this.encounter = new Encounter(combatants) + console.log(this.encounter) } } diff --git a/src/components/Combat.vue b/src/components/Combat.vue index d090bef..61224e1 100644 --- a/src/components/Combat.vue +++ b/src/components/Combat.vue @@ -1,10 +1,11 @@