public Pokemon(int ID, Pokedex Pokedex) { this.ID = ID; this.Pokedex = Pokedex; this.Prototype = this.Pokedex.GetPokemon(ID); this.Skills = this.Prototype.Skills; this.Health = this.GetHealthFromSta(this.Prototype.Stamina); this.Stamina = this.Prototype.Stamina; this.Intelligence = this.Prototype.Intelligence; this.Dexterity = this.Prototype.Dexterity; this.Strength = this.Prototype.Strength; this.Defense = this.Prototype.Defense; this.Icon = (Bitmap) Image.FromFile("./data/" + this.ID.ToString() + "/icon.png"); this.Name = this.Prototype.Name; this.Description = this.Prototype.Description; this.Evolution = new Evolution(); this.Type = this.Prototype.Type; }
private PokedexEntry CreatePokemon(string Name, int Type, int[] Skills, string Description, int Stamina, int Intelligence, int Dexterity, int Strength, int Defense) { PokedexEntry Pokemon = new PokedexEntry(); Pokemon.Name = Name; Pokemon.Description = Description; Pokemon.Type = new PokeType(Type); Pokemon.Skills = new PokedexSkills(); Pokemon.Skills.Ability1 = this.Abilities[Skills[0]]; Pokemon.Skills.Ability2 = this.Abilities[Skills[1]]; Pokemon.Skills.Ability3 = this.Abilities[Skills[2]]; Pokemon.Skills.Ability4 = this.Abilities[Skills[3]]; Pokemon.Stamina = Stamina; Pokemon.Intelligence = Intelligence; Pokemon.Dexterity = Dexterity; Pokemon.Strength = Strength; Pokemon.Defense = Defense; return Pokemon; }