pokeemerald/include/battle_script_commands.h

24 lines
888 B
C
Raw Normal View History

2017-10-06 17:06:45 +02:00
#ifndef GUARD_BATTLE_SCRIPT_COMMANDS_H
#define GUARD_BATTLE_SCRIPT_COMMANDS_H
2020-07-17 02:12:12 +02:00
#include "constants/pokemon.h"
#define WINDOW_CLEAR 0x1
#define WINDOW_x80 0x80
2018-02-27 18:13:28 +01:00
void AI_CalcDmg(u8 battlerIdAtk, u8 battlerIdDef);
u8 TypeCalc(u16 move, u8 battlerIdAtk, u8 battlerIdDef);
2017-10-10 18:01:45 +02:00
u8 AI_TypeCalc(u16 move, u16 targetSpecies, u8 targetAbility);
2018-02-27 18:13:28 +01:00
u8 GetBattlerTurnOrderNum(u8 battlerId);
2017-10-06 17:06:45 +02:00
void SetMoveEffect(bool8 primary, u8 certain);
void BattleDestroyYesNoCursorAt(u8 cursorPosition);
void BattleCreateYesNoCursorAt(u8 cursorPosition);
2017-10-06 17:06:45 +02:00
void BufferMoveToLearnIntoBattleTextBuff2(void);
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
2018-02-27 18:13:28 +01:00
bool8 UproarWakeUpCheck(u8 battlerId);
2017-10-06 17:06:45 +02:00
extern void (* const gBattleScriptingCommandsTable[])(void);
2020-07-17 02:12:12 +02:00
extern const u8 gBattlePalaceNatureToMoveGroupLikelihood[NUM_NATURES][4];
2017-10-06 17:06:45 +02:00
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H