Пример #1
0
        public MyPokemonStat(PokemonDataWrapper pokemon) : base(pokemon)
        {
            TypeFactor = new Dictionary <PokemonType, int>();

            foreach (var type in Enum.GetValues(typeof(PokemonType)))
            {
                GetFactorAgainst((PokemonType)type);
            }
        }
Пример #2
0
        public AnyPokemonStat(PokemonDataWrapper pokemon)
        {
            Data = pokemon;

            MainType  = GameClient.PokemonSettings.Where(f => f.PokemonId == Data.PokemonId).Select(s => s.Type).FirstOrDefault();
            ExtraType = GameClient.PokemonSettings.Where(f => f.PokemonId == Data.PokemonId).Select(s => s.Type2).FirstOrDefault();

            Attack        = GameClient.MoveSettings.Where(f => f.MovementId == Data.Move1).FirstOrDefault();
            SpecialAttack = GameClient.MoveSettings.Where(f => f.MovementId == Data.Move2).FirstOrDefault();
        }
Пример #3
0
 public GymMembershipWrapper(GymMembership gymMembership)
 {
     _gymMembership = gymMembership;
     _pokemonData   = new PokemonDataWrapper(_gymMembership.PokemonData);
 }