예제 #1
0
        public CustomPokemonData Clone()
        {
            CustomPokemonData data = base.MemberwiseClone() as CustomPokemonData;

            data._afterEvolution = new List <int>(this._afterEvolution);
            data._moves          = new List <string>(this._moves);
            return(data);
        }
예제 #2
0
 public void RemoveCustomPokemon(CustomPokemonData pm)
 {
     this._addPokemons.Remove(pm);
     foreach (CustomPokemonData data in this._addPokemons)
     {
         if (data.Number > pm.Number)
         {
             data.Number--;
         }
     }
 }
예제 #3
0
        public CustomPokemonData AddNewPokemon(string name)
        {
            this._idBase++;
            CustomPokemonData item = new CustomPokemonData();

            item.Identity  = this._idBase;
            item.NameBase  = name;
            item.Type1     = "普通";
            item.Trait1    = Trait.自我中心;
            item.EggGroup1 = EggGroup.人型;
            item.Number    = 0x1ee + this._addPokemons.Count;
            this._addPokemons.Add(item);
            return(item);
        }
예제 #4
0
 public bool Equals(CustomPokemonData data)
 {
     if (data == null)
     {
         return(false);
     }
     if (data._identity != this._identity)
     {
         return(false);
     }
     if (data._nameBase != this._nameBase)
     {
         return(false);
     }
     if (data._weight != this._weight)
     {
         return(false);
     }
     if (data._number != this._number)
     {
         return(false);
     }
     if (data._hpBase != this._hpBase)
     {
         return(false);
     }
     if (data._attackBase != this._attackBase)
     {
         return(false);
     }
     if (data._defenceBase != this._defenceBase)
     {
         return(false);
     }
     if (data._speedBase != this._speedBase)
     {
         return(false);
     }
     if (data._spAttackBase != this._spAttackBase)
     {
         return(false);
     }
     if (data._spDefenceBase != this._spDefenceBase)
     {
         return(false);
     }
     if (data._type1 != this._type1)
     {
         return(false);
     }
     if (data._type2 != this._type2)
     {
         return(false);
     }
     if (data._trait1 != this._trait1)
     {
         return(false);
     }
     if (data._trait2 != this._trait2)
     {
         return(false);
     }
     if (data._eggGroup1 != this._eggGroup1)
     {
         return(false);
     }
     if (data._eggGroup2 != this._eggGroup2)
     {
         return(false);
     }
     if (data._beforeEvolution != this._beforeEvolution)
     {
         return(false);
     }
     if (data._afterEvolution.Count != this._afterEvolution.Count)
     {
         return(false);
     }
     for (int i = 0; i < data._afterEvolution.Count; i++)
     {
         if (data._afterEvolution[i] != this._afterEvolution[i])
         {
             return(false);
         }
     }
     if (data._genderRestriction != this._genderRestriction)
     {
         return(false);
     }
     if (data._moves.Count != this._moves.Count)
     {
         return(false);
     }
     for (int j = 0; j < data._moves.Count; j++)
     {
         if (data._moves[j] != this._moves[j])
         {
             return(false);
         }
     }
     if (data._frontImage != this._frontImage)
     {
         return(false);
     }
     if (data._frontImageF != this._frontImageF)
     {
         return(false);
     }
     if (data._backImage != this._backImage)
     {
         return(false);
     }
     if (data._backImageF != this._backImageF)
     {
         return(false);
     }
     if (data._frame != this._frame)
     {
         return(false);
     }
     if (data._frameF != this._frameF)
     {
         return(false);
     }
     if (data._icon != this._icon)
     {
         return(false);
     }
     return(true);
 }