2017-10-06 17:06:45 +02:00
|
|
|
#ifndef GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
#define GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
|
2017-10-22 01:04:02 +02:00
|
|
|
#define WINDOW_CLEAR 0x1
|
|
|
|
#define WINDOW_x80 0x80
|
|
|
|
|
2018-07-23 21:36:05 +02:00
|
|
|
s32 CalcCritChanceStage(u8 battlerAtk, u8 battlerDef, u32 move, bool32 recordAbility);
|
2018-02-27 18:13:28 +01:00
|
|
|
u8 GetBattlerTurnOrderNum(u8 battlerId);
|
2019-08-22 15:57:33 +02:00
|
|
|
bool32 NoAliveMonsForEitherParty(void);
|
2019-02-14 13:17:27 +01:00
|
|
|
void SetMoveEffect(bool32 primary, u32 certain);
|
2020-04-18 18:04:20 +02:00
|
|
|
bool32 CanBattlerSwitch(u32 battlerId);
|
2017-10-21 17:32:35 +02:00
|
|
|
void BattleDestroyYesNoCursorAt(u8 cursorPosition);
|
|
|
|
void BattleCreateYesNoCursorAt(u8 cursorPosition);
|
2017-10-06 17:06:45 +02:00
|
|
|
void BufferMoveToLearnIntoBattleTextBuff2(void);
|
2017-10-22 01:04:02 +02:00
|
|
|
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
|
2018-02-27 18:13:28 +01:00
|
|
|
bool8 UproarWakeUpCheck(u8 battlerId);
|
2018-08-02 20:24:18 +02:00
|
|
|
bool32 DoesSubstituteBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
2020-02-08 19:29:51 +01:00
|
|
|
bool32 DoesDisguiseBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
2018-12-02 23:50:51 +01:00
|
|
|
bool32 CanUseLastResort(u8 battlerId);
|
2019-03-31 21:38:58 +02:00
|
|
|
u32 IsFlowerVeilProtected(u32 battler);
|
2019-12-16 09:29:20 +01:00
|
|
|
u32 IsLeafGuardProtected(u32 battler);
|
2017-10-06 17:06:45 +02:00
|
|
|
|
|
|
|
extern void (* const gBattleScriptingCommandsTable[])(void);
|
2017-11-02 18:19:49 +01:00
|
|
|
extern const u8 gUnknown_0831C494[][4];
|
2017-10-06 17:06:45 +02:00
|
|
|
|
|
|
|
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H
|