diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-17 02:53:14 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-17 17:42:15 +0200 |
commit | cc685bfe02b42b592987117fa008a4461785f53c (patch) | |
tree | 625c1c9573b178e574bb70cac042c35da4036cf1 /resources/js/classes/State.js | |
parent | 717fde1c48c7221da986ac02d2b806b2fee6f2d5 (diff) |
refactorrefactor
Diffstat (limited to 'resources/js/classes/State.js')
-rw-r--r-- | resources/js/classes/State.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/resources/js/classes/State.js b/resources/js/classes/State.js new file mode 100644 index 0000000..2384a85 --- /dev/null +++ b/resources/js/classes/State.js @@ -0,0 +1,38 @@ +class State { + /** + * @type {number} + */ + money = 0; + + /** + * @type {Monster[]} + */ + monsters = []; + + /** + * @type {Item[]} + */ + inventory = []; + + /** + * @type {Monster[]} + */ + partyMonsters = []; + + /** + * @type {Monster} + */ + activeMonster = null; + + /** + * @type {Technique} + */ + activeTechnique = null; + + enemy = { + /** + * @type {Monster} + */ + monster: null, + }; +}; |