2017-10-06 15:06:45 +00:00
|
|
|
#ifndef GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
#define GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
|
2021-10-13 20:39:21 +00:00
|
|
|
#include "constants/battle_script_commands.h"
|
2020-07-17 00:12:12 +00:00
|
|
|
|
2021-10-08 20:50:52 +00:00
|
|
|
// Arguments for 'flags' in HandleBattleWindow
|
|
|
|
#define WINDOW_CLEAR (1 << 0)
|
|
|
|
#define WINDOW_BG1 (1 << 7)
|
2017-10-21 23:04:02 +00:00
|
|
|
|
2022-08-04 09:53:16 +00:00
|
|
|
// Arguments for 'xStart, yStart, xEnd, yEnd' in HandleBattleWindow
|
|
|
|
#define YESNOBOX_X_Y 24, 8, 29, 13
|
|
|
|
|
2018-02-27 17:13:28 +00:00
|
|
|
void AI_CalcDmg(u8 battlerIdAtk, u8 battlerIdDef);
|
|
|
|
u8 TypeCalc(u16 move, u8 battlerIdAtk, u8 battlerIdDef);
|
2017-10-10 16:01:45 +00:00
|
|
|
u8 AI_TypeCalc(u16 move, u16 targetSpecies, u8 targetAbility);
|
2018-02-27 17:13:28 +00:00
|
|
|
u8 GetBattlerTurnOrderNum(u8 battlerId);
|
2017-10-06 15:06:45 +00:00
|
|
|
void SetMoveEffect(bool8 primary, u8 certain);
|
2017-10-21 15:32:35 +00:00
|
|
|
void BattleDestroyYesNoCursorAt(u8 cursorPosition);
|
|
|
|
void BattleCreateYesNoCursorAt(u8 cursorPosition);
|
2017-10-06 15:06:45 +00:00
|
|
|
void BufferMoveToLearnIntoBattleTextBuff2(void);
|
2017-10-21 23:04:02 +00:00
|
|
|
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
|
2018-02-27 17:13:28 +00:00
|
|
|
bool8 UproarWakeUpCheck(u8 battlerId);
|
2017-10-06 15:06:45 +00:00
|
|
|
|
|
|
|
extern void (* const gBattleScriptingCommandsTable[])(void);
|
2020-07-17 00:12:12 +00:00
|
|
|
extern const u8 gBattlePalaceNatureToMoveGroupLikelihood[NUM_NATURES][4];
|
2017-10-06 15:06:45 +00:00
|
|
|
|
|
|
|
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H
|