2017-11-11 00:06:06 +00:00
|
|
|
#ifndef GUARD_TRADE_H
|
|
|
|
#define GUARD_TRADE_H
|
|
|
|
|
2018-12-13 03:55:39 +00:00
|
|
|
#include "link_rfu.h"
|
2019-10-04 00:39:37 +01:00
|
|
|
#include "constants/trade.h"
|
2018-12-13 03:55:39 +00:00
|
|
|
|
2021-10-23 15:55:46 +01:00
|
|
|
extern struct Mail gTradeMail[PARTY_SIZE];
|
2019-10-03 06:16:22 +01:00
|
|
|
extern u8 gSelectedTradeMonPositions[2];
|
2017-11-11 00:06:06 +00:00
|
|
|
|
2019-10-07 03:58:25 +01:00
|
|
|
extern const struct WindowTemplate gTradeEvolutionSceneYesNoWindowTemplate;
|
2017-11-11 00:06:06 +00:00
|
|
|
|
2019-10-10 08:50:51 +01:00
|
|
|
s32 GetGameProgressForLinkTrade(void);
|
2019-10-09 10:56:44 +01:00
|
|
|
void CB2_StartCreateTradeMenu(void);
|
2019-10-05 15:41:37 +01:00
|
|
|
void CB2_LinkTrade(void);
|
2022-06-01 17:41:57 +01:00
|
|
|
int CanRegisterMonForTradingBoard(struct RfuGameCompatibilityData player, u16 species2, u16 species, bool8 isEventLegal);
|
|
|
|
int GetUnionRoomTradeMessageId(struct RfuGameCompatibilityData player, struct RfuGameCompatibilityData partner, u16 playerSpecies2, u16 partnerSpecies, u8 requestedType, u16 playerSpecies, bool8 isEventLegal);
|
2022-07-29 16:15:33 +01:00
|
|
|
int CanSpinTradeMon(struct Pokemon *, u16);
|
2019-10-10 08:50:51 +01:00
|
|
|
void InitTradeSequenceBgGpuRegs(void);
|
|
|
|
void LinkTradeDrawWindow(void);
|
2022-07-29 22:00:07 +01:00
|
|
|
void LoadTradeAnimGfx(void);
|
2019-10-04 00:39:37 +01:00
|
|
|
void DrawTextOnTradeWindow(u8, const u8 *, u8);
|
2017-11-11 00:06:06 +00:00
|
|
|
|
|
|
|
#endif //GUARD_TRADE_H
|