dist/models~ PokemonMove

new PokemonMove()

Represents a move that a Pokemon can learn, along with the method for learning it.

Properties
NameTypeDescription
move_idnumber

The ID of the move that the Pokemon can learn.

methodMoveMethod

The method by which the Pokemon learns the move.

instanceDataManagerBase

The DataManagerBase instance associated with this Pokemon move.

Methods

calc_turn(pokemon, opponent) → {MoveResult}

Simulate a fight between two pokemon instances

Parameters:
NameTypeDescription
pokemonPokemonBase

The pokemon performing the move

opponentPokemonBase

Opponent pokemon

Returns:

The result of a move.

Type: 
MoveResult