1
1

program.cpp 439 B

123456789101112131415161718
  1. #include "program.h"
  2. Program::Program(shared_ptr<Team> team, Direction direction, Position position, int32_t instructionSet, int32_t slotCount, int32_t mobile)
  3. : active(0)
  4. , instructionSet(instructionSet)
  5. , mobile(mobile)
  6. , creationCycle(0)
  7. , generation(0)
  8. , error(NoError)
  9. , team(team)
  10. , position(position)
  11. , tasks(1)
  12. , taskIndex(0)
  13. , banks(slotCount)
  14. {
  15. tasks[0].direction = direction;
  16. }