Models¶
Core data models shared across the entire package.
models ¶
Shared data models used across the entire simulator.
Move
dataclass
¶
Move(
name: str,
type_: str,
category: str,
power: int,
accuracy: int,
pp: int,
status_effect: str | None = None,
stat_changes: dict = dict(),
)
A single move a Pokemon can use in battle.
score ¶
Scoring heuristic used by the AI to pick moves.
Source code in pokerena/models.py
Pokemon
dataclass
¶
Pokemon(
name: str,
types: list[str],
base_stats: dict,
moves: list[Move],
generation: int,
smogon_tier: str,
bst: int,
evo_line: list[str] = list(),
evo_stage: int = 0,
current_hp: int = 0,
max_hp: int = 0,
stats: dict = dict(),
status: str | None = None,
status_counter: int = 0,
stat_stages: dict = dict(),
)