Pokemon | R Documentation |
Pokemon
Pokemon
new()
Pokemon$new( species = "Squirtle", type1 = "Water", type2 = NA, hp = 100, defense = 0, offense = 0, level = 1, turn = TRUE, happiness = 0, evo.stage = 1 )
evo.stage
print()
Pokemon$print(...)
levelup()
Pokemon$levelup(x = 1)
damage()
Pokemon$damage(x)
absorb()
Pokemon$absorb(x)
validate_factor()
Pokemon$validate_factor(x)
clone()
The objects of this class are cloneable with this method.
Pokemon$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.