Exemple #1
0
 public GoapAgent(PlayerReader playerReader, HashSet <GoapAction> availableActions, IBlacklist blacklist, ILogger logger)
 {
     this.playerReader     = playerReader;
     this.AvailableActions = availableActions.OrderBy(a => a.CostOfPerformingAction);
     this.blacklist        = blacklist;
     this.logger           = logger;
     this.planner          = new GoapPlanner(logger);
 }
Exemple #2
0
 public GoapAgent(PlayerReader playerReader, HashSet <GoapGoal> availableGoals, IBlacklist blacklist, ILogger logger, ClassConfiguration classConfiguration)
 {
     this.playerReader       = playerReader;
     this.AvailableGoals     = availableGoals.OrderBy(a => a.CostOfPerformingAction);
     this.blacklist          = blacklist;
     this.logger             = logger;
     this.planner            = new GoapPlanner(logger);
     this.classConfiguration = classConfiguration;
 }