mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-20 05:57:57 -05:00
* Documenting BoxSettings, BoxCursor, and BoxMonSelection * Document UnkStruct_ov19_021D5594 as BoxMonSelection * unk_0B to previewMonSource * Initial polish pass * PR feedback --------- Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
30 lines
947 B
C
30 lines
947 B
C
#ifndef POKEPLATINUM_PARTY_H
|
|
#define POKEPLATINUM_PARTY_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(u32 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
|