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
|
2021-09-28 03:03:27 +02:00
|
|
|
#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
|
|
|
|
2021-01-04 23:30:02 +01:00
|
|
|
#define RETURN_SCORE_PLUS(val) \
|
|
|
|
{ \
|
|
|
|
score += val; \
|
|
|
|
return score; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define RETURN_SCORE_MINUS(val) \
|
|
|
|
{ \
|
|
|
|
score -= val; \
|
|
|
|
return score; \
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-12-22 20:57:12 +01:00
|
|
|
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
|