class roleBase{ constructor(){ this.body = [ MOVE, WORK, CARRY ]; this.name = 'Creep'; } /** @param {Creep} creep **/ run(creep) { } spawn(spawn){ spawn.spawnCreep(this.body, this.name + Game.time, memory : {role : this.name} }); } }; module.exports = roleBase;