mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
33 lines
1020 B
C
33 lines
1020 B
C
#ifndef POKEPLATINUM_PARTY_H
|
|
#define POKEPLATINUM_PARTY_H
|
|
|
|
#include "constants/heap.h"
|
|
#include "constants/pokemon.h"
|
|
|
|
#include "struct_defs/pokemon.h"
|
|
|
|
#include "savedata.h"
|
|
|
|
typedef struct Party {
|
|
int capacity;
|
|
int currentCount;
|
|
Pokemon pokemon[MAX_PARTY_SIZE];
|
|
} 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 *mon);
|
|
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 *mon);
|
|
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
|