Example #1
0
 public Logic(ISettings clientSettings)
 {
     _clientSettings = clientSettings;
     _client         = new Client(_clientSettings);
     _inventory      = new Inventory(_client);
     _botStats       = new BotStats();
     _navigation     = new Navigation(_client);
     _pokevision     = new PokeVisionUtil();
 }
Example #2
0
 public Logic(ISettings clientSettings, LogicInfoObservable infoObservable)
 {
     _clientSettings = clientSettings;
     _client         = new Client(_clientSettings);
     _client.setFailure(new ApiFailureStrat(_client));
     _botStats       = new BotStats();
     _navigation     = new Navigation(_client);
     _pokevision     = new PokeVisionUtil();
     _infoObservable = infoObservable;
 }
Example #3
0
        public Logic(ISettings botSettings, LogicInfoObservable infoObservable)
        {
            this.BotSettings = botSettings;
            var clientSettings = new PokemonGo.RocketAPI.Shared.ClientSettings(botSettings.pFHashKey, botSettings.DefaultLatitude, botSettings.DefaultLongitude, botSettings.DefaultAltitude,
                                                                               botSettings.proxySettings.hostName, botSettings.proxySettings.port, botSettings.proxySettings.username, botSettings.proxySettings.password,
                                                                               botSettings.AuthType, botSettings.Username, botSettings.Password, GlobalVars.BotApiSupportedVersion);

            objClient = new Client(clientSettings);
            objClient.setFailure(new ApiFailureStrat(objClient));
            BotStats            = new BotStats();
            navigation          = new Navigation(objClient, botSettings);
            pokevision          = new PokeVisionUtil();
            this.infoObservable = infoObservable;
            Instance            = this;
            sniperLogic         = new  Sniper(objClient, botSettings);
            PokemonGo.RocketAPI.Shared.KeyCollection.Load();
        }