Script.h 417 B

123456789101112131415161718192021222324252627
  1. #ifndef SCRIPT_H
  2. #define SCRIPT_H
  3. #include "../data/ArrayList.h"
  4. #include "../data/Stack.h"
  5. #include "Data.h"
  6. #include "Instruction.h"
  7. #include <memory>
  8. using namespace std;
  9. class Script
  10. {
  11. public:
  12. Script();
  13. virtual ~Script();
  14. void execute();
  15. ArrayList<Instruction*>& getInstructions();
  16. private:
  17. ArrayList<Instruction*> instructions;
  18. Stack<shared_ptr<Data>> dataStack;
  19. };
  20. #endif