Pokemon: Pokemon

PokemonR Documentation

Pokemon

Description

Pokemon

Pokemon

Methods

Public methods


Method new()

Usage
Pokemon$new(
  species = "Squirtle",
  type1 = "Water",
  type2 = NA,
  hp = 100,
  defense = 0,
  offense = 0,
  level = 1,
  turn = TRUE,
  happiness = 0,
  evo.stage = 1
)
Arguments
evo.stage
Returns

Method print()

Usage
Pokemon$print(...)

Method levelup()

Usage
Pokemon$levelup(x = 1)

Method damage()

Usage
Pokemon$damage(x)

Method absorb()

Usage
Pokemon$absorb(x)

Method validate_factor()

Usage
Pokemon$validate_factor(x)

Method clone()

The objects of this class are cloneable with this method.

Usage
Pokemon$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


crparris/pocketMonstR documentation built on April 20, 2022, 12:45 a.m.