92 lines
3.1 KiB
C
92 lines
3.1 KiB
C
#ifndef GUARD_PARTY_MENU_H
|
|
#define GUARD_PARTY_MENU_H
|
|
|
|
#include "main.h"
|
|
#include "task.h"
|
|
|
|
struct PartyMenu
|
|
{
|
|
MainCallback exitCallback;
|
|
TaskFunc task;
|
|
u8 menuType:4;
|
|
u8 layout:2;
|
|
u8 unused:2;
|
|
s8 slotId;
|
|
s8 slotId2;
|
|
u8 action;
|
|
u16 bagItem;
|
|
s16 unkE; // used as both a moveId and a move slot/cursor position
|
|
s16 learnMoveState;
|
|
};
|
|
|
|
extern struct PartyMenu gPartyMenu;
|
|
extern bool8 gUnknown_0203CEE8;
|
|
extern u8 gUnknown_0203CEE9;
|
|
extern MainCallback gPostMenuFieldCallback;
|
|
extern u8 gSelectedOrderFromParty[4];
|
|
extern u8 gBattlePartyCurrentOrder[3];
|
|
|
|
extern void (*gItemUseCB)(u8, TaskFunc);
|
|
|
|
extern const u16 gTutorMoves[];
|
|
|
|
void AnimatePartySlot(u8 slot, u8 animNum);
|
|
bool8 IsMultiBattle(void);
|
|
u8 GetCursorSelectionMonId(void);
|
|
u8 GetPartyMenuType(void);
|
|
void Task_HandleChooseMonInput(u8 taskId);
|
|
u8* GetMonNickname(struct Pokemon *mon, u8 *dest);
|
|
u8 DisplayPartyMenuMessage(const u8* str, bool8 keepOpen);
|
|
bool8 IsPartyMenuTextPrinterActive(void);
|
|
void PartyMenuModifyHP(u8 taskId, u8 slot, s8 c, s16 HPDifference, TaskFunc func);
|
|
u8 GetAilmentFromStatus(u32 status);
|
|
u8 GetMonAilment(struct Pokemon *mon);
|
|
void DisplayPartyMenuStdMessage(u32 stringID);
|
|
bool8 FieldCallback_PrepareFadeInFromMenu(void);
|
|
void CB2_ReturnToPartyMenuFromFlyMap(void);
|
|
void LoadHeldItemIcons(void);
|
|
void DrawHeldItemIconsForTrade(u8 *a, u8 *b, u8 c);
|
|
void CB2_ShowPartyMenuForItemUse(void);
|
|
void ItemUseCB_Medicine(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_ReduceEV(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_PPRecovery(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_PPUp(u8 taskId, TaskFunc task);
|
|
u16 ItemIdToBattleMoveId(u16 item);
|
|
bool8 IsMoveHm(u16 move);
|
|
bool8 MonKnowsMove(struct Pokemon *mon, u16 move);
|
|
void ItemUseCB_TMHM(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_RareCandy(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_SacredAsh(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_EvolutionStone(u8 taskId, TaskFunc task);
|
|
u8 GetItemEffectType(u16 item);
|
|
void CB2_PartyMenuFromStartMenu(void);
|
|
void CB2_ChooseMonToGiveItem(void);
|
|
void ChooseMonToGiveMailFromMailbox(void);
|
|
void InitChooseHalfPartyForBattle(u8 unused);
|
|
void ClearSelectedPartyOrder(void);
|
|
void ChooseMonForTradingBoard(u8 initArg, MainCallback callback);
|
|
void ChooseMonForMoveTutor(void);
|
|
void ChooseMonForWirelessMinigame(void);
|
|
void OpenPartyMenuInBattle(u8 arg);
|
|
void ChooseMonForInBattleItem(void);
|
|
void sub_81B8C68(void);
|
|
void sub_81B8D64(u8 battlerId, u8 multiplayerFlag);
|
|
void sub_81B8E80(u8 battlerId, u8 unk, u8 arrayIndex);
|
|
void SwitchPartyMonSlots(u8 slot, u8 slot2);
|
|
u8 GetBattlerPartyId(u8 slot);
|
|
void ShowPartyMenuToShowcaseMultiBattleParty(void);
|
|
void ChooseMonForDaycare(void);
|
|
bool8 CB2_FadeFromPartyMenu(void);
|
|
void ChooseContestMon(void);
|
|
void ChoosePartyMon(void);
|
|
void ChooseMonForMoveRelearner(void);
|
|
void BattlePyramidChooseMonHeldItems(void);
|
|
void DoBattlePyramidMonsHaveHeldItem(void);
|
|
void IsSelectedMonEgg(void);
|
|
void IsLastMonThatKnowsSurf(void);
|
|
void MoveDeleterForgetMove(void);
|
|
void BufferMoveDeleterNicknameAndMove(void);
|
|
void GetNumMovesSelectedMonHas(void);
|
|
void MoveDeleterChooseMoveToForget(void);
|
|
|
|
#endif // GUARD_PARTY_MENU_H
|