예제 #1
0
        public GoapAgent(ILogger logger, WowProcess wowProcess, ConfigurableInput input, PlayerReader playerReader, HashSet <GoapGoal> availableGoals, IBlacklist blacklist, ClassConfiguration classConfiguration, BagReader bagReader)
        {
            this.logger     = logger;
            this.wowProcess = wowProcess;
            this.input      = input;

            this.playerReader   = playerReader;
            this.AvailableGoals = availableGoals.OrderBy(a => a.CostOfPerformingAction);
            this.blacklist      = blacklist;

            this.planner            = new GoapPlanner(logger);
            this.classConfiguration = classConfiguration;
            this.bagReader          = bagReader;
        }
예제 #2
0
 public StopMoving(WowProcessInput input, PlayerReader playerReader)
 {
     this.input        = input;
     this.playerReader = playerReader;
 }
 public Task <List <WowPoint> > FindRouteTo(PlayerReader playerReader, WowPoint destination)
 {
     return(FindRoute((int)playerReader.ZoneId, playerReader.PlayerLocation, destination));
 }
예제 #4
0
 public ItemsBrokenGoal(PlayerReader playerReader, ILogger logger)
 {
     this.playerReader = playerReader;
     this.logger       = logger;
 }