From 218da95a4b387ee5ac25f168d1529419039f2e54 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 19 Aug 2023 13:18:54 +0200 Subject: refactor: enemy -> opponent, State.monsters~ -> State.Trainer.monsters --- resources/js/classes/State.js | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'resources/js/classes/State.js') diff --git a/resources/js/classes/State.js b/resources/js/classes/State.js index c0065d1..99a642c 100644 --- a/resources/js/classes/State.js +++ b/resources/js/classes/State.js @@ -2,37 +2,30 @@ class State { /** * @type {number} */ - money = 0; + turn = 0; /** - * @type {Monster[]} + * @type {number} */ - monsters = []; + money = 0; /** - * @type {InventoryItem[]} + * @type {Monster[]} */ - inventory = []; + monsters = []; /** - * @type {Monster[]} + * @type {Trainer} */ - partyMonsters = []; + player = null; /** - * @type {Monster} + * @type {Trainer} */ - activeMonster = null; + opponent = null; /** * @type {Technique} */ activeTechnique = null; - - enemy = { - /** - * @type {Monster} - */ - monster: null, - }; }; -- cgit v1.2.3