pokeemerald/include/battle_ai_main.h

32 lines
775 B
C
Raw Normal View History

2020-12-20 22:47:20 +01:00
#ifndef GUARD_BATTLE_AI_MAIN_H
#define GUARD_BATTLE_AI_MAIN_H
2017-09-05 09:41:48 +02:00
2018-06-17 16:48:58 +02:00
// return values for BattleAI_ChooseMoveOrAction
// 0 - 3 are move idx
#define AI_CHOICE_FLEE 4
#define AI_CHOICE_WATCH 5
#define AI_CHOICE_SWITCH 7
#define AI_CHOICE_USE_ITEM 8
2018-06-17 16:48:58 +02:00
#define RETURN_SCORE_PLUS(val) \
{ \
score += val; \
return score; \
}
#define RETURN_SCORE_MINUS(val) \
{ \
score -= val; \
return score; \
}
void BattleAI_SetupItems(void);
void BattleAI_SetupFlags(void);
2017-09-05 09:41:48 +02:00
void BattleAI_SetupAIData(u8 defaultScoreMoves);
u8 BattleAI_ChooseMoveOrAction(void);
2020-12-11 16:05:00 +01:00
extern u8 sBattler_AI;
2020-12-20 22:47:20 +01:00
#endif // GUARD_BATTLE_AI_MAIN_H