Пример #1
0
        public ISlotManager SlotBuilder(Deltin.CustomGameAutomation.AI ai, Func <List <int> > filledSlotsFunction, BotsModifiedFlag modifiedFlag)
        {
            BotDeltinObservation  botDeltinObservation  = new BotDeltinObservation(ai);
            DeltinSlotObservation deltinSlotObservation = new DeltinSlotObservation(botDeltinObservation, filledSlotsFunction);
            ISlotContentObserver  observer = new SlotContentObserver(modifiedFlag, deltinSlotObservation);
            ISlotContentHistory   history  = new SlotContentHistory(observer);
            ISlotManager          slots    = new SlotManager(history);

            return(slots);
        }
Пример #2
0
        public IBotManager BotBuilder(Deltin.CustomGameAutomation.AI ai, ISlotManager slots, BotsModifiedFlag modifiedFlag)
        {
            BotRequests   requests  = new BotRequests();
            IBotRequester requester = new BotRequester(requests);

            IBotExpectations      expectations      = new BotExpectations(requests, slots);
            IBotDeltinManipulator deltinManipulator = new BotDeltinManipulator(ai);

            IBotManipulation manipulation = new BotManipulation(slots, deltinManipulator, modifiedFlag);

            IBotCorruption corruption = new BotCorruption(slots.Bots, expectations);
            IBotRequestFulfillmentManager botRequestFulfillmentManager = new BotRequestFulfillmentManager(expectations, manipulation, corruption);

            IBotManager bots = new BotManager(requester, botRequestFulfillmentManager);

            return(bots);
        }
Пример #3
0
 public BotDeltinObservation(Deltin.CustomGameAutomation.AI ai)
 {
     _ai = ai;
 }       
Пример #4
0
 public BotDeltinManipulator(Deltin.CustomGameAutomation.AI ai)
 {
     _ai = ai;
 }