Beispiel #1
0
 public PokemonUiData(BotWindowData ownerBot, ulong id, PokemonId pokemonid, string name, //BitmapSource img,
                      int cp, double iv, PokemonFamilyId family, int candy, ulong stamp, bool fav, bool inGym, double level,
                      PokemonMove move1, PokemonMove move2, PokemonType type1, PokemonType type2, int maxCp, BaseStats baseStats,
                      int stamina, int maxStamina, int possibleCp, int candyToEvolve)
 {
     OwnerBot  = ownerBot;
     Favoured  = fav;
     InGym     = inGym;
     Id        = id;
     PokemonId = pokemonid;
     //Image = img;
     Name          = name;
     Cp            = cp;
     Iv            = iv;
     Candy         = candy;
     Family        = family;
     Timestamp     = stamp;
     Level         = level;
     Move1         = move1;
     Move2         = move2;
     Type1         = type1;
     Type2         = type2;
     MaxCp         = maxCp;
     Stats         = baseStats;
     Stamina       = stamina;
     MaxStamina    = maxStamina;
     CandyToEvolve = candyToEvolve;
     PossibleCp    = possibleCp;
 }
Beispiel #2
0
 public PokemonUiData(BotWindowData ownerBot, ulong id, PokemonId pokemonid, BitmapSource img, string name, int cp, double iv, PokemonFamilyId family, int candy, ulong stamp, bool fav, bool inGym)
 {
     OwnerBot  = ownerBot;
     Favoured  = fav;
     InGym     = inGym;
     Id        = id;
     PokemonId = pokemonid;
     Image     = img;
     Name      = name;
     Cp        = cp;
     Iv        = iv;
     Candy     = candy;
     Family    = family;
     Timestamp = stamp;
 }
Beispiel #3
0
 public ItemUiData(ItemId id, string name, int amount, BotWindowData bot)
 {
     OwnerBot    = bot;
     Id          = id;
     Name        = name;
     Amount      = amount;
     _usageTimer = new DispatcherTimer {
         Interval = new TimeSpan(0, 0, 1)
     };
     _usageTimer.Tick += delegate
     {
         Ts -= new TimeSpan(0, 0, 1);
         if (Ts.TotalSeconds <= 0)
         {
             InUse = false;
         }
     };
 }
 public PokemonUiData(BotWindowData ownerBot, ulong id, PokemonId pokemonid, string name, //BitmapSource img,
                      int cp, double iv, PokemonFamilyId family, int candy, ulong stamp, bool fav, bool inGym, double level,
                      PokemonMove move1, PokemonMove move2, PokemonType type1, PokemonType type2, int maxCp, BaseStats baseStats,
                      int stamina, int ivSta, int possibleCp, int candyToEvolve, int ivAtk, int ivDef, float cpm,
                      float weight, int maxStamina, PokemonId[] evolutions, bool buddy)
 {
     OwnerBot  = ownerBot;
     Favoured  = fav;
     InGym     = inGym;
     Id        = id;
     PokemonId = pokemonid;
     //Image = img;
     Name          = name;
     Cp            = cp;
     Iv            = iv;
     Candy         = candy;
     Family        = family;
     Timestamp     = stamp;
     Level         = level;
     Move1         = move1;
     Move2         = move2;
     Type1         = type1;
     Type2         = type2;
     MaxCp         = maxCp;
     Stats         = baseStats;
     Stamina       = stamina;
     IvSta         = ivSta;
     CandyToEvolve = candyToEvolve;
     PossibleCp    = possibleCp;
     IvAtk         = ivAtk;
     IvDef         = ivDef;
     Cpm           = cpm;
     Weight        = weight;
     MaxStamina    = maxStamina;
     Evolutions    = evolutions;
     Buddy         = buddy;
 }