Exemple #1
0
 public BuildManager(Dictionary <Race, BuildChoices> buildChoices, DebugService debugService, IMacroBalancer macroBalancer, IBuildDecisionService buildDecisionService, IEnemyPlayerService enemyPlayerService, ChatHistory chatHistory, EnemyStrategyHistory enemyStrategyHistory)
 {
     BuildChoices         = buildChoices;
     DebugService         = debugService;
     MacroBalancer        = macroBalancer;
     BuildDecisionService = buildDecisionService;
     EnemyPlayerService   = enemyPlayerService;
     ChatHistory          = chatHistory;
     EnemyStrategyHistory = enemyStrategyHistory;
 }
Exemple #2
0
 public BuildManager(DefaultSharkyBot defaultSharkyBot)
 {
     BuildChoices         = defaultSharkyBot.BuildChoices;
     DebugService         = defaultSharkyBot.DebugService;
     MacroBalancer        = defaultSharkyBot.MacroBalancer;
     BuildDecisionService = defaultSharkyBot.BuildDecisionService;
     EnemyPlayerService   = defaultSharkyBot.EnemyPlayerService;
     ChatHistory          = defaultSharkyBot.ChatHistory;
     EnemyStrategyHistory = defaultSharkyBot.EnemyStrategyHistory;
 }
Exemple #3
0
        public ChatManager(HttpClient httpClient, ChatHistory chatHistory, SharkyOptions sharkyOptions, IChatDataService chatDataService, IEnemyPlayerService enemyPlayerManager, IEnemyNameService enemyNameService, ChatService chatService, ActiveChatData activeChatData)
        {
            HttpClient         = httpClient;
            ChatHistory        = chatHistory;
            SharkyOptions      = sharkyOptions;
            ChatDataService    = chatDataService;
            EnemyPlayerManager = enemyPlayerManager;
            EnemyNameService   = enemyNameService;
            ChatService        = chatService;
            ActiveChatData     = activeChatData;

            ApiEnabled = false;

            LastResponseTimes   = new Dictionary <TypeEnum, int>();
            ChatTypeFrequencies = new Dictionary <TypeEnum, int>();
            foreach (var chatType in Enum.GetValues(typeof(TypeEnum)).Cast <TypeEnum>())
            {
                ChatTypeFrequencies[chatType] = 3;
            }
        }