R6 object containing required information about a Pokémon move.
Methods
Method new()
Create a Move
Usage
Move$new(move_name, generation = 1L)
Arguments
move_name
The hyphen cased name of the move e.g. "razor-leaf"
generation
The generation that the Pokémon comes from
Method get_pp_status()
Get current PP of the move
Method get_stat()
Get the stat of the move
Arguments
stat
The private field of the move
Method can_use_move()
Checks the ability to use the move
Returns
Logical as to whether or not the move has been used or not
Method use_move()
Checks the ability to use the move
Usage
Move$use_move(attacker, defender, battle, generation)
Arguments
attacker
The attacking Pokemon
defender
The defending Pokemon
battle
The PokemonBattle
in place. Used to know
generation
The generation that the battle is happening in
Returns
Logical as to whether or not the move has been used or not
Method clone()
The objects of this class are cloneable with this method.
Arguments
deep
Whether to make a deep clone.