mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-30 14:20:42 +01:00
31 lines
733 B
C
31 lines
733 B
C
#ifndef GUARD_BATTLE_AI_MAIN_H
|
|
#define GUARD_BATTLE_AI_MAIN_H
|
|
|
|
// 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 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);
|
|
void BattleAI_SetupAIData(u8 defaultScoreMoves);
|
|
u8 BattleAI_ChooseMoveOrAction(void);
|
|
|
|
extern u8 sBattler_AI;
|
|
|
|
#endif // GUARD_BATTLE_AI_MAIN_H
|