Пример #1
0
 public static GOAPDan getSingleton()
 {
     if (GOAPDanSingleton == null)
     {
         GOAPDanSingleton = new GOAPDan();
     }
     return(GOAPDanSingleton);
 }
Пример #2
0
    public Plan searchForNewPlan(List <WorldStateMemory> memories, Goal goal)
    {
        if (goal == null || memories == null)
        {
            return(null);
        }
        List <Action> possibleEndActions = GOAPDan.getSingleton().getActionsByEffect(goal.getConditionToModify());
        List <Plan>   plansPerEndActions = new List <Plan>();

        for (int i = 0; i < possibleEndActions.Count; i++)
        {
        }



        return(null);//just to make it compile for now.
    }
Пример #3
0
 public GOAPDan()
 {
     GOAPDanSingleton = this;
     actionsByEffect  = new Dictionary <string, List <Action> >();
 }