public static GOAPDan getSingleton() { if (GOAPDanSingleton == null) { GOAPDanSingleton = new GOAPDan(); } return(GOAPDanSingleton); }
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. }
public GOAPDan() { GOAPDanSingleton = this; actionsByEffect = new Dictionary <string, List <Action> >(); }