// Change Planrunners plans to compondmovements void PlanRunner() { AiActions S = AiActions.StepBack; // do nothing if (Tasks.Count > 0) { S = Tasks.Peek(); Tasks.Pop(); print(S); } // Make the change to remain idle to go back to previous switch (S) { case AiActions.MoveForward: resumeMovement(); moveForward(); break; case AiActions.Recalculate: break; case AiActions.StayIdle: doStayIdle(); remainIdle(); break; case AiActions.StepBack: break; case AiActions.Teleport: TeleportThenSet(); break; } }
void printPlans() { if (Tasks.Count > 0) { AiActions S = Tasks.Peek(); Tasks.Pop(); print(S); } }