'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var uid = require('../../../../utils/data/uid.js');

class InstructionSet {
  constructor() {
    this.uid = uid.uid("instructionSet");
    this.instructions = [];
    this.instructionSize = 0;
  }
  reset() {
    this.instructionSize = 0;
  }
  add(instruction) {
    this.instructions[this.instructionSize++] = instruction;
  }
  log() {
    this.instructions.length = this.instructionSize;
    console.table(this.instructions, ["type", "action"]);
  }
  lastInstruction() {
    return this.instructions[this.instructionSize - 1];
  }
}

exports.InstructionSet = InstructionSet;
//# sourceMappingURL=InstructionSet.js.map
