public PokemonType(int rar, string nam, float uw, float lw, float uh, float lh, int icp, int ihp, string mv1, int dmg1, string mv2, int dmg2, string mv3, int dmg3) { rarity = rar; name = nam; lowerWeight = lw; upperWeight = uw; lowerHeight = lh; upperHeight = uh; initialCP = icp; initialHP = ihp; atkMovesList = new AttackMoves[3]; atkMovesList[0] = new AttackMoves(mv1, dmg1); atkMovesList[1] = new AttackMoves(mv2, dmg2); atkMovesList[2] = new AttackMoves(mv3, dmg3); }
public Pokemon(int pId, PokemonType x) { id = pId; rand = new Random(); name = x.Name; typeName = x.Name; moveslist = new AttackMoves[3]; int i = 0; foreach (AttackMoves c in x.AtkMovesList) { moveslist[i] = new AttackMoves(c.name, c.attackPoints); i++; } weight = rand.Next((int)(x.LowerWeight * 10), (int)(x.UpperWeight * 10 + 1)) / (float)10; height = rand.Next((int)(x.LowerHeight * 10), (int)(x.UpperHeight * 10 + 1)) / (float)10; CP = x.InitialCP; maxHP = x.InitialHP; evolvestate = 1; HP = maxHP; }