StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
13 stars 2 forks source link

Refactor: Targets & Pokemon Pointers #362

Closed adapap closed 3 years ago

adapap commented 3 years ago

New API will use only Target{Party, Slot} as [2]int keys for pretty much every operation. This will replace any existing calls to battle.getPokemon, battle.getPokemonInBattle, battle.getTarget, target, and related fields in the current API. The idea is to not worry about the specific pointers as too many factors potentially cause it to be invalidated/changed. Agents will still receive a copy of the Pokemon for reference?

adapap commented 3 years ago

image