mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
9d6953cc63
* Deleted sTMHMMoves array, TMs/HMs read moves from their secondaryId item field now The unused "registrability" variable has been removed in order to preserve the size of the gItems array after turning the secondaryId variable into a u16. * Made ItemIdToBattleMoveId return ITEM_NONE if an item that is not a TM/HM is passed through it * Renamed IsMoveHm to IsMoveHM
101 lines
3.9 KiB
C
101 lines
3.9 KiB
C
#ifndef GUARD_PARTY_MENU_H
|
|
#define GUARD_PARTY_MENU_H
|
|
|
|
#include "main.h"
|
|
#include "task.h"
|
|
|
|
// seems like the last two fields may have been left as all-purpose vars
|
|
// and the second of the two just happens to only be used in one case
|
|
struct PartyMenu
|
|
{
|
|
MainCallback exitCallback;
|
|
TaskFunc task;
|
|
u8 menuType:4;
|
|
u8 layout:2;
|
|
s8 slotId;
|
|
s8 slotId2;
|
|
u8 action;
|
|
u16 bagItem;
|
|
s16 data1; // used variously as a moveId, counter, moveSlotId, or cursorPos
|
|
s16 learnMoveState; // data2, used only as a learn move state
|
|
};
|
|
|
|
extern struct PartyMenu gPartyMenu;
|
|
extern bool8 gPartyMenuUseExitCallback;
|
|
extern u8 gSelectedMonPartyId;
|
|
extern MainCallback gPostMenuFieldCallback;
|
|
extern u8 gSelectedOrderFromParty[MAX_FRONTIER_PARTY_SIZE];
|
|
extern u8 gBattlePartyCurrentOrder[PARTY_SIZE / 2];
|
|
|
|
extern void (*gItemUseCB)(u8, TaskFunc);
|
|
extern const struct SpriteTemplate gSpriteTemplate_StatusIcons;
|
|
|
|
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 hpIncrement, s16 HPDifference, TaskFunc task);
|
|
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 *partyCounts, u8 *partySpriteIds, u8 whichParty);
|
|
void LoadPartyMenuAilmentGfx(void);
|
|
void CB2_ShowPartyMenuForItemUse(void);
|
|
void ItemUseCB_BattleScript(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_BattleChooseMove(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_Medicine(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_AbilityCapsule(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_AbilityPatch(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 MonKnowsMove(struct Pokemon *mon, u16 move);
|
|
bool8 BoxMonKnowsMove(struct BoxPokemon *boxMon, 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);
|
|
void ItemUseCB_FormChange(u8 taskId, TaskFunc task);
|
|
void ItemUseCB_FormChange_ConsumedOnUse(u8 taskId, TaskFunc task);
|
|
const u8* GetItemEffect(u16 item);
|
|
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 menuType, MainCallback callback);
|
|
void ChooseMonForMoveTutor(void);
|
|
void ChooseMonForWirelessMinigame(void);
|
|
void OpenPartyMenuInBattle(u8 partyAction);
|
|
void ChooseMonForInBattleItem(void);
|
|
void BufferBattlePartyCurrentOrder(void);
|
|
void BufferBattlePartyCurrentOrderBySide(u8 battlerId, u8 flankId);
|
|
void SwitchPartyOrderLinkMulti(u8 battlerId, u8 slot, u8 arrayIndex);
|
|
void SwitchPartyMonSlots(u8 slot, u8 slot2);
|
|
u8 GetPartyIdFromBattlePartyId(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
|