export class Entity { constructor(id, name, type, x, y, texturePath) { this.id = id; this.name = name; this.type = type; // 'hero', 'monster' this.x = x; this.y = y; this.texturePath = texturePath; this.stats = { move: 4, wounds: 10 }; } setPosition(x, y) { this.x = x; this.y = y; } }