コード例 #1
0
        public void OnAgentPlanCalculated(Queue <IAIAction <L, V> > actions, IAIGoal <L, V> goal)
        {
            DisplayDiagnosticsInfo(aiAgent.GetDiagnostics());

            if (actionPlan.IsValid)
            {
                previousPlans.Add(actionPlan);
            }

            actionPlan = new ActionPlan <L, V>
            {
                Goal    = goal,
                Actions = new Queue <IAIAction <L, V> >(actions),
            };

            DisplayActionInfo();
        }