pokeplatinum/include/party.h
Eduardo Quezada 294fc259bd
Some checks failed
build / build (push) Has been cancelled
Some heap ID renaming (#552)
2025-06-20 19:14:18 -07:00

32 lines
984 B
C

#ifndef POKEPLATINUM_PARTY_H
#define POKEPLATINUM_PARTY_H
#include "constants/heap.h"
#include "struct_defs/pokemon.h"
#include "savedata.h"
typedef struct Party {
int capacity;
int currentCount;
Pokemon pokemon[6];
} Party;
int Party_SaveSize(void);
Party *Party_New(enum HeapId heapID);
void Party_Init(Party *party);
void Party_InitWithCapacity(Party *party, int capacity);
BOOL Party_AddPokemon(Party *party, Pokemon *pokemon);
BOOL Party_RemovePokemonBySlotIndex(Party *party, int slot);
int Party_GetCapacity(const Party *party);
int Party_GetCurrentCount(const Party *party);
Pokemon *Party_GetPokemonBySlotIndex(const Party *party, int slot);
void Party_AddPokemonBySlotIndex(Party *party, int slot, Pokemon *pokemon);
BOOL Party_SwapSlots(Party *party, int slotA, int slotB);
void Party_Copy(const Party *src, Party *dest);
BOOL Party_HasSpecies(const Party *party, int species);
Party *SaveData_GetParty(SaveData *saveData);
#endif // POKEPLATINUM_PARTY_H