new PokemonMove()
Represents a move that a Pokemon can learn, along with the method for learning it.
Name | Type | Description |
---|---|---|
move_id | number | The ID of the move that the Pokemon can learn. |
method | MoveMethod | The method by which the Pokemon learns the move. |
instance | DataManagerBase | The DataManagerBase instance associated with this Pokemon move. |
Methods
calc_turn(pokemon, opponent) → {MoveResult}
Simulate a fight between two pokemon instances
Parameters:
Name | Type | Description |
---|---|---|
pokemon | PokemonBase | The pokemon performing the move |
opponent | PokemonBase | Opponent pokemon |
Returns:
The result of a move.
- Type:
- MoveResult