mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
e791cf90ad
# Conflicts: # data/battle_anim_scripts.s # include/battle_anim.h # include/battle_controllers.h # include/battle_interface.h # include/battle_main.h # include/battle_setup.h # include/constants/battle_anim.h # include/constants/battle_string_ids.h # src/battle_ai_switch_items.c # src/battle_anim_fire.c # src/battle_anim_normal.c # src/battle_controllers.c # src/battle_dome.c # src/battle_gfx_sfx_util.c # src/battle_interface.c # src/battle_message.c # src/battle_script_commands.c # src/battle_util.c # src/pokemon.c
72 lines
2.5 KiB
C
72 lines
2.5 KiB
C
#ifndef GUARD_BATTLE_SETUP_H
|
|
#define GUARD_BATTLE_SETUP_H
|
|
|
|
#include "gym_leader_rematch.h"
|
|
|
|
#define REMATCHES_COUNT 5
|
|
|
|
struct RematchTrainer
|
|
{
|
|
u16 trainerIds[REMATCHES_COUNT];
|
|
u16 mapGroup;
|
|
u16 mapNum;
|
|
};
|
|
|
|
extern const struct RematchTrainer gRematchTable[REMATCH_TABLE_ENTRIES];
|
|
|
|
extern u16 gTrainerBattleOpponent_A;
|
|
extern u16 gTrainerBattleOpponent_B;
|
|
extern u16 gPartnerTrainerId;
|
|
|
|
void BattleSetup_StartWildBattle(void);
|
|
void BattleSetup_StartDoubleWildBattle(void);
|
|
void BattleSetup_StartBattlePikeWildBattle(void);
|
|
void BattleSetup_StartRoamerBattle(void);
|
|
void StartWallyTutorialBattle(void);
|
|
void BattleSetup_StartScriptedWildBattle(void);
|
|
void BattleSetup_StartScriptedDoubleWildBattle(void);
|
|
void BattleSetup_StartLatiBattle(void);
|
|
void BattleSetup_StartLegendaryBattle(void);
|
|
void StartGroudonKyogreBattle(void);
|
|
void StartRegiBattle(void);
|
|
u8 BattleSetup_GetTerrainId(void);
|
|
u8 GetWildBattleTransition(void);
|
|
u8 GetTrainerBattleTransition(void);
|
|
u8 GetSpecialBattleTransition(s32 id);
|
|
void ChooseStarter(void);
|
|
void ResetTrainerOpponentIds(void);
|
|
void SetMapVarsToTrainer(void);
|
|
const u8 *BattleSetup_ConfigureTrainerBattle(const u8 *data);
|
|
void ConfigureAndSetUpOneTrainerBattle(u8 trainerObjEventId, const u8 *trainerScript);
|
|
void ConfigureTwoTrainersBattle(u8 trainerObjEventId, const u8 *trainerScript);
|
|
void SetUpTwoTrainersBattle(void);
|
|
bool32 GetTrainerFlagFromScriptPointer(const u8 *data);
|
|
void SetTrainerFacingDirection(void);
|
|
u8 GetTrainerBattleMode(void);
|
|
bool8 GetTrainerFlag(void);
|
|
bool8 HasTrainerBeenFought(u16 trainerId);
|
|
void SetTrainerFlag(u16 trainerId);
|
|
void ClearTrainerFlag(u16 trainerId);
|
|
void BattleSetup_StartTrainerBattle(void);
|
|
void BattleSetup_StartRematchBattle(void);
|
|
void ShowTrainerIntroSpeech(void);
|
|
const u8 *BattleSetup_GetScriptAddrAfterBattle(void);
|
|
const u8 *BattleSetup_GetTrainerPostBattleScript(void);
|
|
void ShowTrainerCantBattleSpeech(void);
|
|
void PlayTrainerEncounterMusic(void);
|
|
const u8 *GetTrainerALoseText(void);
|
|
const u8 *GetTrainerBLoseText(void);
|
|
const u8 *GetTrainerWonSpeech(void);
|
|
void UpdateRematchIfDefeated(s32 rematchTableId);
|
|
void IncrementRematchStepCounter(void);
|
|
void TryUpdateRandomTrainerRematches(u16 mapGroup, u16 mapNum);
|
|
bool32 DoesSomeoneWantRematchIn(u16 mapGroup, u16 mapNum);
|
|
bool32 IsRematchTrainerIn(u16 mapGroup, u16 mapNum);
|
|
u16 GetLastBeatenRematchTrainerId(u16 trainerId);
|
|
bool8 ShouldTryRematchBattle(void);
|
|
bool8 IsTrainerReadyForRematch(void);
|
|
void ShouldTryGetTrainerScript(void);
|
|
u16 CountBattledRematchTeams(u16 trainerId);
|
|
|
|
#endif // GUARD_BATTLE_SETUP_H
|