Ejemplo n.º 1
0
 public void SetPokemon(PKMDS.Pokemon pkm)
 {
     PokemonSet = false;
     this.SharedPokemon = pkm.Clone();
     this.TempPokemon = pkm.Clone();
     //this.IsParty = false;
 }
Ejemplo n.º 2
0
 public void SetPokemon(PKMDS.PartyPokemon ppkm)
 {
     PokemonSet = false;
     //SetPokemon(ppkm.PokemonData);
     this.SharedPokemon = ppkm.PokemonData.Clone();
     this.TempPokemon = ppkm.PokemonData.Clone();
     //this.IsParty = true;
 }
Ejemplo n.º 3
0
        private void frmMemMapTestA_Load(object sender, EventArgs e)
        {
            ((Control)(pbSprite)).AllowDrop = true;
            frmpkm = PKMDS.ReadPokemonFile("Dragonite.pkm");
            Random rnd = new Random(DateTime.Now.Millisecond);

            frmpkm.SpeciesID = (UInt16)(rnd.Next(1, 649));
            frmpkm.SID       = 0x1234;
            lblData.Text     = frmpkm.SpeciesName;
            pbSprite.Image   = frmpkm.Sprite;
        }
Ejemplo n.º 4
0
 private PKMDS.PartyPokemon ViewPokemon(PKMDS.PartyPokemon ppkm)
 {
     pkmviewer.SetPokemon(ppkm.PokemonData.Clone());
     pkmviewer.ShowDialog();
     PKMDS.PartyPokemon newppkm = new PKMDS.PartyPokemon();
     newppkm.PokemonData = pkmviewer.SharedPokemon.Clone();
     return newppkm;
 }
Ejemplo n.º 5
0
 private PKMDS.Pokemon ViewPokemon(PKMDS.Pokemon pkm)
 {
     pkmviewer.SetPokemon(pkm);
     pkmviewer.ShowDialog();
     return pkmviewer.SharedPokemon;
 }
Ejemplo n.º 6
0
 private void PreviewPokemon(PKMDS.Pokemon pkm)
 {
     pbSprite.Image = pkm.Sprite;
     pbGender.Image = pkm.GenderIcon;
     pbHeldItem.Image = pkm.ItemPic;
     pbBall.Image = pkm.BallPic;
     pbShiny.Image = pkm.ShinyIcon;
     lblHeldItem.Text = PKMDS.GetItemName(pkm.ItemID);
     lblNickname.Text = pkm.Nickname;
     lblLevel.Text = "Level " + pkm.Level.ToString("");
 }
Ejemplo n.º 7
0
 private void DisplayPokemon(PKMDS.Pokemon pkm)
 {
     UpdateFormIcon();
     UpdateCommonInfo();
     UpdateBasicInfo();
     UpdateStatsInfo();
     UpdateMovesInfo();
     UpdateOriginsInfo();
     UpdateRibbonsInfo();
     UpdateMiscInfo();
     PokemonSet = true;
 }