pokelance.models.abstract.move ⚓︎

Move ⚓︎

Bases: BaseModel

Move model.

Attributes:
  • id (int) –

    The identifier for this resource.

  • name (str) –

    The name for this resource.

  • accuracy (int) –

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

  • effect_chance (int) –

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

  • pp (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 (int) –

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

  • contest_combos (ContestComboSet) –

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

  • contest_type (NamedResource) –

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

  • contest_effect (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.

  • 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 (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 (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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

MoveAilment ⚓︎

Bases: BaseModel

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

Attributes:
  • 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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

MoveBattleStyle ⚓︎

Bases: BaseModel

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

Attributes:
  • 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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

MoveCategory ⚓︎

Bases: BaseModel

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

Attributes:
  • 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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

MoveDamageClass ⚓︎

Bases: BaseModel

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

Attributes:
  • 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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)

MoveLearnMethod ⚓︎

Bases: BaseModel

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

Attributes:
  • 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:
  • 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
    -------
    typing.Dict[str, Any]
        The model as a dict.
    """
    return attrs.asdict(self)