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); }
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); }
public BotDeltinObservation(Deltin.CustomGameAutomation.AI ai) { _ai = ai; }
public BotDeltinManipulator(Deltin.CustomGameAutomation.AI ai) { _ai = ai; }