Wrapper class for the Move class for Pokemon to interact with. These are the moves assigned to a Pokemon object. It links to Move class via the move ID. Compared to Move, this class also tracks if a move has received. PP Ups, amount of PP used, and things like that.

  • isUsable - checks if move is disabled, out of PP, or not implemented.
  • getMove - returns Move object by looking it up via ID.
  • usePp - removes a point of PP from the move.
  • getMovePp - returns amount of PP a move currently has.
  • getPpRatio - returns the current PP amount / max PP amount.
  • getName - returns name of Move.

Constructors

Properties

moveId: Moves
ppUp: number
ppUsed: number
virtual: boolean

Methods

  • Copies an existing move or creates a valid PokemonMove object from json representing one

    Parameters

    • source: any

      The data for the move to copy

    Returns PokemonMove

    A valid pokemonmove object