Options
All
  • Public
  • Public/Protected
  • All
Menu

A class to calculate the stat values of Pokémon of a certain generation.

Hierarchy

  • Calculator

Index

Constructors

Methods

Constructors

constructor

  • Create a new Calculator for the given generations with the given stat base data.

    Parameters

    • stats: StatsMap

      The base stats for all Pokémon in the supported generations.

    Returns Calculator

Methods

atk

  • Calculate the attack stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the attack stat for.

    Returns number

def

  • Calculate the defense stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the defense stat for.

    Returns number

hp

  • Calculate the HP stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the HP stat for.

    Returns number

level

  • Calculate the level a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the level for.

    Returns number

spAtk

  • Calculate the special attack stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the special attack stat for.

    Returns number

spDef

  • Calculate the special defense stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the special defense stat for.

    Returns number

spe

  • Calculate the speed stat a given Pokémon has.

    Parameters

    • pkm: PkBase

      The Pokémon to calculate the speed stat for.

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc