Skip to content

Move

pokelance.models.abstract.move ⚓︎

Move ⚓︎

Bases: BaseModel

Move model.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

accuracy Optional[int]

The percent value of how likely this move is to be successful.

effect_chance Optional[int]

The percent value of how likely it is this moves effect will take effect.

pp Optional[int]

Power points. The number of times this move can be used.

priority int

A value between -8 and 8. Sets the order in which moves are executed during battle. See Bulbapedia for greater detail.

power Optional[int]

The base power of this move with a value of 0 if it does not have a base power.

contest_combos Optional[ContestComboSet]

A detail of normal and super contest combos that require this move.

contest_type Optional[NamedResource]

The type of appeal this move gives a Pokémon when used in a contest.

contest_effect Optional[Resource]

The effect the move has when used in a contest.

damage_class NamedResource

The type of damage the move inflicts on the target, e.g. physical.

effect_entries List[VerboseEffect]

The effect of this move listed in different languages.

effect_changes List[AbilityEffectChange]

The list of previous effects this move has had across version groups of the games.

learned_by_pokemon List[NamedResource]

A list of Pokémon that can learn this move.

flavor_text_entries List[MoveFlavorText]

The flavor text of this move listed in different languages.

generation NamedResource

The generation in which this move was introduced.

machines List[MachineVersionDetail]

A list of the machines that teach this move.

meta Optional[MoveMetaData]

Metadata about this move.

names List[Name]

The name of this resource listed in different languages.

past_values List[PastMoveStatValues]

A list of move resource value changes across version groups of the games.

stat_changes List[MoveStatChange]

A list of stats this moves effects and how much it effects them.

super_contest_effect Optional[Resource]

The effect the move has when used in a super contest.

target NamedResource

The type of target that will receive the effects of the attack.

type NamedResource

The elemental type of this move.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveAilment ⚓︎

Bases: BaseModel

MoveAilment models the data returned by the API for a move ailment.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

moves List[NamedResource]

A list of moves that cause this ailment.

names List[Name]

The name of this resource listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveBattleStyle ⚓︎

Bases: BaseModel

MoveBattleStyle models the data returned by the API for a move battle style.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

names List[Name]

The name of this resource listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveCategory ⚓︎

Bases: BaseModel

MoveCategory models the data returned by the API for a move category.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

moves List[NamedResource]

A list of moves that fall into this category.

descriptions List[Description]

The description of this resource listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveDamageClass ⚓︎

Bases: BaseModel

MoveDamageClass models the data returned by the API for a move damage class.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

descriptions List[Description]

The description of this resource listed in different languages.

moves List[NamedResource]

A list of moves that fall into this damage class.

names List[Name]

The name of this resource listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveLearnMethod ⚓︎

Bases: BaseModel

MoveLearnMethod models the data returned by the API for a move learn method.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

descriptions List[Description]

The description of this resource listed in different languages.

names List[Name]

The name of this resource listed in different languages.

version_groups List[NamedResource]

A list of version groups where moves can be learned through this method.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

MoveTarget ⚓︎

Bases: BaseModel

MoveTarget models the data returned by the API for a move target.

Attributes:

Name Type Description
id int

The identifier for this resource.

name str

The name for this resource.

descriptions List[Description]

The description of this resource listed in different languages.

moves List[NamedResource]

A list of moves that target this move target.

names List[Name]

The name of this resource listed in different languages.

to_dict() ⚓︎

Convert the model to a dict

Returns:

Type Description
Dict[str, Any]

The model as a dict.

Source code in pokelance/models/_base.py
Python
def to_dict(self) -> t.Dict[str, t.Any]:
    """Convert the model to a dict

    Returns
    -------
    t.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(
        self, filter=attrs.filters.exclude(attrs.fields(BaseModel).raw), value_serializer=_serializer
    )

Comments