Skip to content

Commit

Permalink
asf
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrerm124 committed Jul 31, 2016
1 parent 4b06734 commit a1f188b
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 293 deletions.
217 changes: 142 additions & 75 deletions PoGo.NecroBot.Logic/ILogicSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ public Location()
{
}

public Location(double latitude, double longitude)
public Location( double latitude, double longitude )
{
Latitude = latitude;
Longitude = longitude;
}

public double Latitude { get; set; }
public double Longitude { get; set; }
public double Latitude
{ get; set; }
public double Longitude
{ get; set; }
}

public class SnipeSettings
Expand All @@ -30,14 +32,16 @@ public SnipeSettings()
{
}

public SnipeSettings(List<Location> locations, List<PokemonId> pokemon)
public SnipeSettings( List<Location> locations, List<PokemonId> pokemon )
{
Locations = locations;
Pokemon = pokemon;
}

public List<Location> Locations { get; set; }
public List<PokemonId> Pokemon { get; set; }
public List<Location> Locations
{ get; set; }
public List<PokemonId> Pokemon
{ get; set; }
}

public class TransferFilter
Expand All @@ -46,84 +50,147 @@ public TransferFilter()
{
}

public TransferFilter(int keepMinCp, float keepMinIvPercentage, int keepMinDuplicatePokemon)
public TransferFilter( int keepMinCp, float keepMinIvPercentage, int keepMinDuplicatePokemon )
{
KeepMinCp = keepMinCp;
KeepMinIvPercentage = keepMinIvPercentage;
KeepMinDuplicatePokemon = keepMinDuplicatePokemon;
}

public int KeepMinCp { get; set; }
public float KeepMinIvPercentage { get; set; }
public int KeepMinDuplicatePokemon { get; set; }
public int KeepMinCp
{ get; set; }
public float KeepMinIvPercentage
{ get; set; }
public int KeepMinDuplicatePokemon
{ get; set; }
}

public interface ILogicSettings
{
bool AutoUpdate { get; }
bool TransferConfigAndAuthOnUpdate { get; }
float KeepMinIvPercentage { get; }
int KeepMinCp { get; }
double WalkingSpeedInKilometerPerHour { get; }
bool EvolveAllPokemonWithEnoughCandy { get; }
bool KeepPokemonsThatCanEvolve { get; }
bool TransferDuplicatePokemon { get; }
bool UseEggIncubators { get; }
int UseGreatBallAboveCp { get; }
int UseUltraBallAboveCp { get; }
int UseMasterBallAboveCp { get; }
int DelayBetweenPokemonCatch { get; }
bool AutomaticallyLevelUpPokemon { get; }
string LevelUpByCPorIv { get; }
float UpgradePokemonCpMinimum { get; }
float UpgradePokemonIvMinimum { get; }
int DelayBetweenPlayerActions { get; }
bool UsePokemonToNotCatchFilter { get; }
int KeepMinDuplicatePokemon { get; }
bool PrioritizeIvOverCp { get; }
int MaxTravelDistanceInMeters { get; }
bool UseGpxPathing { get; }
string GpxFile { get; }
bool UseLuckyEggsWhileEvolving { get; }
int UseLuckyEggsMinPokemonAmount { get; }
bool EvolveAllPokemonAboveIv { get; }
float EvolveAboveIvValue { get; }
bool DumpPokemonStats { get; }
bool RenamePokemon { get; }
bool RenameOnlyAboveIv { get; }
string RenameTemplate { get; }
int AmountOfPokemonToDisplayOnStart { get; }
string TranslationLanguageCode { get; }
string ProfilePath { get; }
string ProfileConfigPath { get; }
string GeneralConfigPath { get; }
bool SnipeAtPokestops { get; }
int MinPokeballsToSnipe { get; }
int MinPokeballsWhileSnipe { get; }
int MaxPokeballsPerPokemon { get; }
string SnipeLocationServer { get; }
int SnipeLocationServerPort { get; }
bool UseSnipeLocationServer { get; }
bool UseTransferIvForSnipe { get; }
bool SnipeIgnoreUnknownIv { get; }
int MinDelayBetweenSnipes { get; }
int TotalAmountOfPokebalsToKeep { get; }
int TotalAmountOfPotionsToKeep { get; }
int TotalAmountOfRevivesToKeep { get; }

ICollection<KeyValuePair<ItemId, int>> ItemRecycleFilter { get; }

ICollection<PokemonId> PokemonsToEvolve { get; }

ICollection<PokemonId> PokemonsNotToTransfer { get; }

ICollection<PokemonId> PokemonsNotToCatch { get; }

ICollection<PokemonId> PokemonToUseMasterball { get; }

Dictionary<PokemonId, TransferFilter> PokemonsTransferFilter { get; }
SnipeSettings PokemonToSnipe { get; }

bool StartupWelcomeDelay { get; }
bool AutoUpdate
{ get; }
bool TransferConfigAndAuthOnUpdate
{ get; }
float KeepMinIvPercentage
{ get; }
int KeepMinCp
{ get; }
double WalkingSpeedInKilometerPerHour
{ get; }
bool EvolveAllPokemonWithEnoughCandy
{ get; }
bool KeepPokemonsThatCanEvolve
{ get; }
bool TransferDuplicatePokemon
{ get; }
bool UseEggIncubators
{ get; }
int UseGreatBallAboveCp
{ get; }
int UseUltraBallAboveCp
{ get; }
int UseMasterBallAboveCp
{ get; }
int DelayBetweenPokemonCatch
{ get; }
bool AutomaticallyLevelUpPokemon
{ get; }
string LevelUpByCPorIv
{ get; }
float UpgradePokemonCpMinimum
{ get; }
float UpgradePokemonIvMinimum
{ get; }
int DelayBetweenPlayerActions
{ get; }
bool UsePokemonToNotCatchFilter
{ get; }
int KeepMinDuplicatePokemon
{ get; }
bool PrioritizeIvOverCp
{ get; }
int MaxTravelDistanceInMeters
{ get; }
bool UseGpxPathing
{ get; }
string GpxFile
{ get; }
bool UseLuckyEggsWhileEvolving
{ get; }
int UseLuckyEggsMinPokemonAmount
{ get; }
bool EvolveAllPokemonAboveIv
{ get; }
float EvolveAboveIvValue
{ get; }
bool DumpPokemonStats
{ get; }
bool RenamePokemon
{ get; }
bool RenameOnlyAboveIv
{ get; }
string RenameTemplate
{ get; }
int AmountOfPokemonToDisplayOnStart
{ get; }
string TranslationLanguageCode
{ get; }
string ProfilePath
{ get; }
string ProfileConfigPath
{ get; }
string GeneralConfigPath
{ get; }
bool SnipeAtPokestops
{ get; }
int MinPokeballsToSnipe
{ get; }
int MinPokeballsWhileSnipe
{ get; }
int MaxPokeballsPerPokemon
{ get; }
string SnipeLocationServer
{ get; }
int SnipeLocationServerPort
{ get; }
bool UseSnipeLocationServer
{ get; }
bool UseSnipeOnlineLocationServer
{ get; }
bool UseTransferIvForSnipe
{ get; }
bool SnipeIgnoreUnknownIv
{ get; }
int MinDelayBetweenSnipes
{ get; }
int TotalAmountOfPokebalsToKeep
{ get; }
int TotalAmountOfPotionsToKeep
{ get; }
int TotalAmountOfRevivesToKeep
{ get; }

ICollection<KeyValuePair<ItemId, int>> ItemRecycleFilter
{ get; }

ICollection<PokemonId> PokemonsToEvolve
{ get; }

ICollection<PokemonId> PokemonsNotToTransfer
{ get; }

ICollection<PokemonId> PokemonsNotToCatch
{ get; }

ICollection<PokemonId> PokemonToUseMasterball
{ get; }

Dictionary<PokemonId, TransferFilter> PokemonsTransferFilter
{ get; }
SnipeSettings PokemonToSnipe
{ get; }

bool StartupWelcomeDelay
{ get; }
}
}
1 change: 1 addition & 0 deletions PoGo.NecroBot.Logic/PoGo.NecroBot.Logic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<Compile Include="Event\EggHatchedEvent.cs" />
<Compile Include="Event\EggsListEvent.cs" />
<Compile Include="Event\EventDispatcher.cs" />
<Compile Include="Event\EvolveCountEvent.cs" />
<Compile Include="Event\FortTargetEvent.cs" />
<Compile Include="Event\FortFailedEvent.cs" />
<Compile Include="Event\FortUsedEvent.cs" />
Expand Down
Loading

0 comments on commit a1f188b

Please sign in to comment.