PokemonVariety

@Serializable
data class PokemonVariety(val id: Int, val name: String, val baseExperience: Int, val height: Int, val isDefault: Boolean, val order: Int, val weight: Int, val species: Handle.Named<PokemonSpecies>, val abilities: List<PokemonAbility>, val forms: List<Handle.Named<PokemonForm>>, val gameIndices: List<VersionGameIndex>, val heldItems: List<PokemonHeldItem>, val moves: List<PokemonMove>, val stats: List<PokemonStat>, val types: List<PokemonType>, val pastTypes: List<PokemonPastType>, val pastAbilities: List<PokemonPastAbility>, val cries: PokemonCries, val sprites: PokemonSprites) : NamedModel(source)

Pokémon are the creatures that inhabit the world of the Pokémon games. They have a variety of stats, abilities, and forms. See: https://pokeapi.co/docs/v2#pokemon

Parameters

id

The identifier for this Pokémon resource.

name

The name for this Pokémon resource.

baseExperience

The base experience gained for defeating this Pokémon.

height

The height of this Pokémon in decimetres.

isDefault

Whether this is the default variety of the Pokémon.

order

The order for sorting. Almost national order, except families are grouped together.

weight

The weight of this Pokémon in hectograms.

species

The species this Pokémon belongs to.

abilities

A list of abilities this Pokémon could potentially have.

forms

A list of forms this Pokémon can take.

gameIndices

A list of game indices relevant to this Pokémon.

heldItems

A list of items this Pokémon may be holding when encountered.

moves

A list of moves this Pokémon can learn.

stats

A list of base stat values for this Pokémon.

types

A list of types this Pokémon has.

pastTypes

A list of types this Pokémon had in previous generations.

pastAbilities

A list of abilities this Pokémon had in previous generations.

cries

The cries for this Pokémon.

sprites

A set of sprites used to depict this Pokémon in the game.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, baseExperience: Int, height: Int, isDefault: Boolean, order: Int, weight: Int, species: Handle.Named<PokemonSpecies>, abilities: List<PokemonAbility>, forms: List<Handle.Named<PokemonForm>>, gameIndices: List<VersionGameIndex>, heldItems: List<PokemonHeldItem>, moves: List<PokemonMove>, stats: List<PokemonStat>, types: List<PokemonType>, pastTypes: List<PokemonPastType>, pastAbilities: List<PokemonPastAbility>, cries: PokemonCries, sprites: PokemonSprites)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
val order: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val weight: Int