index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-26 16:08:40 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-26 16:08:40 -0700 |
commit | f07d120b4bb245a76bdd80712a33ba8b222d966a (patch) | |
tree | 5cf9ba397848ec29db4d411ba3158aaf620c1fbd /src/modules/game/counter.js | |
parent | a5e1ebcd478fea473de68aab738d5fb2cb5ddd7c (diff) |
Refactor sight line module to remove almost all querying for elements
Diffstat (limited to 'src/modules/game/counter.js')
-rw-r--r-- | src/modules/game/counter.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/game/counter.js b/src/modules/game/counter.js index 69552d8..cc15509 100644 --- a/src/modules/game/counter.js +++ b/src/modules/game/counter.js @@ -1,8 +1,11 @@ const svgns = "http://www.w3.org/2000/svg"; export default class Counter { - constructor(svg) { + #board; + + constructor(svg, board) { this.svg = svg; + this.#board = board; this.selectedClass = 'selected'; } |