public Logic(ISettings clientSettings) { _clientSettings = clientSettings; _client = new Client(_clientSettings); _inventory = new Inventory(_client); _botStats = new BotStats(); _navigation = new Navigation(_client); _pokevision = new PokeVisionUtil(); }
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; }
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(); }