コード例 #1
0
ファイル: Program.cs プロジェクト: XibalbaTM/PokeBot2
 private static ITransferStrategy SelectTransferStrategy(Client pokemonClient, IPokemonTransferer transferer, ISettings settings)
 {
     switch (ClientSettings.TransferType.ToLower())
     {
         case "cp":
             return new CpTransferStrategy(pokemonClient, transferer, ClientSettings.TransferCPThreshold);
         case "duplicate":
             return new DuplicatesTransferStrategy(pokemonClient, transferer);
         case "all":
             return new AllTransferStrategy(pokemonClient, transferer);
         case "leaveStrongest":
         default:
             return new AllButStrongestTransferStrategy(pokemonClient, transferer);
     }
 }
コード例 #2
0
 public AllButStrongestTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient, transferer)
 {
 }
コード例 #3
0
 public CpTransferStrategy(Client pokemonClient, IPokemonTransferer transferer, int minCp) : base(pokemonClient, transferer)
 {
     _minCp = minCp;
 }
コード例 #4
0
 protected BaseTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient)
 {
     _transferer = transferer;
 }
コード例 #5
0
 public DuplicatesTransferStrategy(Client pokemonClient, IPokemonTransferer transferer) : base(pokemonClient, transferer)
 {
 }