Пример #1
0
        public PokeForm(Pokemon orig, int subId, string formName, string additionalUri, PokemonType firstType, PokemonType secondType, GenerationType generation, FormType formType = FormType.Other)
            : base(subId, formName, generation, firstType, secondType)
        {
            Original = orig ?? throw new ArgumentNullException(nameof(orig));

            FormType = formType;

            Sprite      = PokemonIconPool.GetPokemonSprite(orig.ID, additionalUri);
            ShinySprite = PokemonIconPool.GetPokemonSprite(orig.ID, additionalUri, true);

            Original.Forms.Add(this);
        }
Пример #2
0
        public Pokemon(int id, string name, PokemonType firstPokemonType, PokemonType secondPokemonType = PokemonType.None, LegendaryType legendaryType = LegendaryType.None, bool hasFemale = false)
            : base(id, name, PokemonHelper.GetGenerationTypeByID(id), firstPokemonType, secondPokemonType)
        {
            LegendaryType = legendaryType;

            Sprite      = PokemonIconPool.GetPokemonSprite(ID, string.Empty);
            ShinySprite = PokemonIconPool.GetPokemonSprite(ID, string.Empty, true);

            if (hasFemale)
            {
                Female = new FemaleMon(this);
            }
        }
Пример #3
0
 protected FemaleMon(int id, string name, GenerationType generationType, PokemonType firstPokemonType, PokemonType secondPokemonType = PokemonType.None) : base(id, name, generationType, firstPokemonType, secondPokemonType)
 {
     Sprite      = PokemonIconPool.GetPokemonSprite(id, "f");
     ShinySprite = PokemonIconPool.GetPokemonSprite(id, "f", true);
 }