summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-08-15 11:43:57 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-08-15 11:43:57 +0200
commitc806992cfc5a4fac53f2c8a52b32f7a039773e41 (patch)
tree017808f86a4c1202ccd275443a87cb6e762d59c8 /include
parent6dac87abfd2bea0ddf126cdc1e9c31757c8fee36 (diff)
Port contest ai from pokeruby
Diffstat (limited to 'include')
-rw-r--r--include/contest.h9
-rw-r--r--include/contest_ai.h16
-rw-r--r--include/contest_effect.h4
3 files changed, 27 insertions, 2 deletions
diff --git a/include/contest.h b/include/contest.h
index b7324e26b..761b16369 100644
--- a/include/contest.h
+++ b/include/contest.h
@@ -406,7 +406,7 @@ extern struct ContestResources *gContestResources;
#define sContest (*gContestResources->field_0)
#define sContestantStatus (gContestResources->field_4)
#define shared192D0 (*gContestResources->field_8)
-#define eContestAI (*gContestResources->field_C)
+#define eContestAI (gContestResources->field_C)
#define shared19328 (*gContestResources->field_10)
#define shared19338 (*gContestResources->field_14)
@@ -417,5 +417,12 @@ extern u32 gContestRngValue;
bool8 IsSpeciesNotUnown(u16 species);
void LoadContestBgAfterMoveAnim(void);
+void SetContestantEffectStringID(u8 a, u8 b);
+void SetContestantEffectStringID2(u8 a, u8 b);
+void MakeContestantNervous(u8 p);
+bool8 Contest_IsMonsTurnDisabled(u8 a);
+bool8 sub_80DE1E8(u8 a);
+void SetStartledString(u8 a, u8 b);
+s8 Contest_GetMoveExcitement(u16);
#endif //GUARD_CONTEST_H
diff --git a/include/contest_ai.h b/include/contest_ai.h
new file mode 100644
index 000000000..20b9eec10
--- /dev/null
+++ b/include/contest_ai.h
@@ -0,0 +1,16 @@
+#ifndef GUARD_CONTESTAI_H
+#define GUARD_CONTESTAI_H
+
+// AI states
+enum
+{
+ CONTESTAI_SETTING_UP,
+ CONTESTAI_PROCESSING,
+ CONTESTAI_FINISHED,
+ CONTESTAI_DO_NOT_PROCESS
+};
+
+void ContestAI_ResetAI(u8);
+u8 ContestAI_GetActionToUse(void);
+
+#endif // GUARD_CONTESTAI_H
diff --git a/include/contest_effect.h b/include/contest_effect.h
index 3484ca5df..4b3b151eb 100644
--- a/include/contest_effect.h
+++ b/include/contest_effect.h
@@ -17,6 +17,8 @@ struct ContestEffect
};
extern const struct ContestMove gContestMoves[];
-extern struct ContestEffect gContestEffects[];
+extern const struct ContestEffect gContestEffects[];
+
+bool8 AreMovesContestCombo(u16 lastMove, u16 nextMove);
#endif //GUARD_CONTEST_EFFECT_H