Esempio n. 1
0
 public GOAP(WorldState ws, List <GOAPGoal> goals, List <GOAPAction> actions, GOAPAStarBase astar)
 {
     WorldState = ws;
     _goals     = goals;
     _actions   = actions;
     _plan      = new GOAPPlan(astar);
     _curGoal   = null;
     foreach (var goal in goals)
     {
         goalsMap.Add(goal.GOAPGoalType, goal);
     }
 }
Esempio n. 2
0
 public GOAPPlan(GOAPAStarBase astar)
 {
     _astar = astar;
 }