2017-09-17 19:26:17 +02:00
|
|
|
#ifndef GUARD_TRAINER_SEE_H
|
|
|
|
#define GUARD_TRAINER_SEE_H
|
|
|
|
|
2017-12-01 21:25:13 +01:00
|
|
|
struct ApproachingTrainer
|
|
|
|
{
|
2019-11-21 04:55:44 +01:00
|
|
|
u8 objectEventId;
|
2017-12-18 19:35:50 +01:00
|
|
|
u8 radius; // plus 1
|
2017-12-01 21:25:13 +01:00
|
|
|
const u8 *trainerScriptPtr;
|
2017-12-18 23:26:44 +01:00
|
|
|
u8 taskId;
|
2017-12-01 21:25:13 +01:00
|
|
|
};
|
|
|
|
|
2019-11-01 08:41:55 +01:00
|
|
|
extern u16 gWhichTrainerToFaceAfterBattle;
|
|
|
|
extern u8 gPostBattleMovementScript[4];
|
2017-12-18 23:26:44 +01:00
|
|
|
extern struct ApproachingTrainer gApproachingTrainers[2];
|
2017-12-19 17:33:07 +01:00
|
|
|
extern u8 gNoOfApproachingTrainers;
|
2019-11-01 08:41:55 +01:00
|
|
|
extern bool8 gTrainerApproachedPlayer;
|
2017-12-19 17:33:07 +01:00
|
|
|
extern u8 gApproachingTrainerId;
|
2017-12-01 21:25:13 +01:00
|
|
|
|
2017-12-19 17:18:44 +01:00
|
|
|
bool8 CheckForTrainersWantingBattle(void);
|
2021-02-14 20:25:23 +01:00
|
|
|
void SetBuriedTrainerMovement(struct ObjectEvent *var);
|
2021-01-26 10:41:13 +01:00
|
|
|
void DoTrainerApproach(void);
|
2018-12-07 23:50:56 +01:00
|
|
|
void TryPrepareSecondApproachingTrainer(void);
|
2018-06-14 00:51:26 +02:00
|
|
|
u8 FldEff_ExclamationMarkIcon(void);
|
|
|
|
u8 FldEff_QuestionMarkIcon(void);
|
2017-12-19 17:18:44 +01:00
|
|
|
u8 FldEff_HeartIcon(void);
|
2019-11-21 04:55:44 +01:00
|
|
|
u8 GetCurrentApproachingTrainerObjectEventId(void);
|
|
|
|
u8 GetChosenApproachingTrainerObjectEventId(u8 arrayId);
|
2019-11-01 08:41:55 +01:00
|
|
|
void PlayerFaceTrainerAfterBattle(void);
|
2017-09-17 19:26:17 +02:00
|
|
|
|
2017-12-18 23:26:44 +01:00
|
|
|
#endif // GUARD_TRAINER_SEE_H
|