class PoorPokemon::PokedexPokemon

Attributes

att[RW]
def[RW]
hp[RW]
name[RW]
num[RW]
spAtt[RW]
spDef[RW]
spd[RW]
totalStats[RW]
type1[RW]
type2[RW]

Public Class Methods

new(arr) click to toggle source
# File lib/poor-pokemon/pokedexPokemon.rb, line 4
def initialize(arr)
  @name, @num, @type1,  @type2, @hp, @att, @def, @spAtt, @spDef, @spd, @totalStats = arr
end

Public Instance Methods

clone(flag=false) click to toggle source
# File lib/poor-pokemon/pokedexPokemon.rb, line 8
def clone (flag=false)
  # creates a copy of this pokedexPokemon object as a pokemon object
  # moves is an array of moves
  #flag is for enemy to have perfect stats
  return PoorPokemon::Pokemon.new([@name, @type1, @type2, @hp.to_i, @att.to_i, @def.to_i, @spAtt.to_i, @spDef.to_i, @spd.to_i], flag)
end