summaryrefslogtreecommitdiff
path: root/src/battle_ai.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-03-18 04:00:15 +0100
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-03-18 04:00:15 +0100
commit6035511c139549a0291b6b3d43b9b080f792b2b6 (patch)
tree128cb1580f3c1ac1a6f897ea2e8e703265e88914 /src/battle_ai.c
parentd4703599837531d1118b64822c85755f28747ee1 (diff)
reorganize and add new headers for many files
Diffstat (limited to 'src/battle_ai.c')
-rw-r--r--src/battle_ai.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/battle_ai.c b/src/battle_ai.c
index ceab60ca0..07f319e40 100644
--- a/src/battle_ai.c
+++ b/src/battle_ai.c
@@ -8,29 +8,10 @@
#include "rng.h"
#include "species.h"
#include "moves.h"
-
-#define AIScriptRead32(ptr) ((ptr)[0] | (ptr)[1] << 8 | (ptr)[2] << 16 | (ptr)[3] << 24)
-#define AIScriptRead16(ptr) ((ptr)[0] | (ptr)[1] << 8)
-#define AIScriptRead8(ptr) ((ptr)[0])
-#define AIScriptReadPtr(ptr) (u8*) AIScriptRead32(ptr)
+#include "battle_ai.h"
extern void sub_801CAF8(u8, u8);
-enum
-{
- TARGET,
- USER
-};
-
-// AI states
-enum
-{
- AIState_SettingUp,
- AIState_Processing,
- AIState_FinishedProcessing,
- AIState_DoNotProcess
-};
-
extern void move_effectiveness_something(u16, u8, u8);
extern u16 gBattleTypeFlags;
@@ -283,12 +264,6 @@ const u16 sDiscouragedPowerfulMoveEffects[] =
0xFFFF
};
-void BattleAI_SetupAIData(void);
-void BattleAI_DoAIProcessing(void);
-void sub_810745C(void);
-void AIStackPushVar(u8 *);
-u8 AIStackPop(void);
-
// if the AI is a Link battle, safari, battle tower, or ereader, it will ignore considering item uses.
void BattleAI_HandleItemUseBeforeAISetup(void)
{