class Character { constructor(player_id, cell, spells) { this.name = name this.cell = cell this.actions = 3 this.spells = spells } } class Spell { constructor(id, name, fn_available_cells, fn_apply) { this.id = id this.name = name this.fn_available_cells = fn_available_cells this.fn_apply = fn_apply } } class Cell { constructor(x, y, content) { this.x = x this.y = y this.content = content } } class Grid { constructor(cells) { this.cells = cells } from_file(file_mane) { return Grid(cells) } } class Game { constructor(players, grid) { this.players = players this.grid = grid } } /*var grid = new Grid() var me = new Character(1, new Cell(), spells) */